---
updatedAt: 2026-04-20T20:32:06.000Z
agentTools:
  projectIndex: https://docs.zeptopayments.com/llms.txt
---

# retry payment

Retry a failed payment as long as it has failed due to a [retryable]https://docs.zeptopayments.com/reference/payto-reason-codes) reason as indicated by the `retryable` boolean field within the payment's failure object. Payments may be retried up to 10 times while within the related agreement's validity begin and end dates. Additionally, payments can only be retried 5 times within a 24 hour period (the first submission is included in this count).

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Zepto PayTo API",
    "version": "20260901",
    "description": "Documentation for the Zepto PayTo API.",
    "termsOfService": "https://www.zepto.com.au/customer-terms",
    "contact": {
      "email": "support@zepto.com.au"
    }
  },
  "tags": [
    {
      "name": "Payments",
      "description": "Make payments using an existing agreement"
    }
  ],
  "externalDocs": {
    "description": "Zepto API v1.0",
    "url": "https://docs.zeptopayments.com"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/payto/payments/{payment_uid}/retry": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ZeptoAPIVersion"
        },
        {
          "name": "payment_uid",
          "in": "path",
          "schema": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9\\-._~]+$",
            "description": "A supplied unique ID",
            "example": "Payment_00012345"
          },
          "required": true
        }
      ],
      "post": {
        "summary": "retry payment",
        "tags": [
          "Payments"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ZeptoAPIVersion"
          }
        ],
        "description": "Retry a failed payment as long as it has failed due to a [retryable]https://docs.zeptopayments.com/reference/payto-reason-codes) reason as indicated by the `retryable` boolean field within the payment's failure object. Payments may be retried up to 10 times while within the related agreement's validity begin and end dates. Additionally, payments can only be retried 5 times within a 24 hour period (the first submission is included in this count).",
        "responses": {
          "202": {
            "description": "successful"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "examples": {
                  "Generic validation error": {
                    "summary": "Generic validation error",
                    "value": {
                      "errors": [
                        {
                          "title": "Validation Failed",
                          "detail": "The value for `unexpected_key` is not allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/payto.generic_errors"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized",
            "content": {
              "application/json": {
                "examples": {
                  "Unauthorised access token": {
                    "summary": "Unauthorised access token",
                    "value": {
                      "errors": [
                        {
                          "title": "Unauthorised access token",
                          "detail": "Access token is expired or not valid",
                          "links": {
                            "about": "https://docs.zeptopayments.com/docs/zepto-api#authentication-and-authorisation"
                          }
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/payto.generic_errors"
                }
              }
            }
          },
          "403": {
            "description": "forbidden"
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "examples": {
                  "Payment is not retryable": {
                    "summary": "Payment is not retryable",
                    "value": {
                      "errors": [
                        {
                          "code": "ZPPRY00",
                          "title": "Payment not retryable",
                          "detail": "Payment is not in a retryable state"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/payto.unprocessable_payment_retry_errors"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "$ref": "#/components/schemas/payto.retry_payment_request"
              }
            }
          }
        },
        "callbacks": {
          "payto_payment.settled": {
            "DESTINATION_WEBHOOK_URL": {
              "post": {
                "summary": "payto_payment.settled",
                "requestBody": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/payto.webhook.payto_payment.settled"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          },
          "payto_payment.failed": {
            "DESTINATION_WEBHOOK_URL": {
              "post": {
                "summary": "payto_payment.failed",
                "requestBody": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/payto.webhook.payto_payment.failed"
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "OK"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "description": "Zepto Sandbox",
      "url": "https://api.sandbox.zeptopayments.com"
    },
    {
      "description": "Zepto Production",
      "url": "https://api.zeptopayments.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "ZeptoAPIVersion": {
        "name": "Zepto-API-Version",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^\\d{8}$",
          "default": "20250101",
          "example": "20260901"
        },
        "description": "API version in YYYYMMDD format. Defaults to 20250101 (legacy) when omitted."
      }
    },
    "schemas": {
      "payto.account_identifier": {
        "type": "object",
        "description": "An identifier representing the parties account",
        "required": [
          "type",
          "value"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "bban",
              "alias_phone",
              "alias_email",
              "alias_abn",
              "alias_organisation_identifier"
            ]
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/payto.account_identifiers_bban"
              },
              {
                "$ref": "#/components/schemas/payto.account_identifiers_alias_email"
              },
              {
                "$ref": "#/components/schemas/payto.account_identifiers_alias_phone"
              },
              {
                "$ref": "#/components/schemas/payto.account_identifiers_alias_abn"
              },
              {
                "$ref": "#/components/schemas/payto.account_identifiers_alias_organisation_identifier"
              }
            ]
          }
        }
      },
      "payto.account_identifiers_alias_abn": {
        "type": "string",
        "title": "ABN alias",
        "description": "A PayID ABN alias",
        "example": "123456789",
        "pattern": "^((\\d{9})|(\\d{11}))$"
      },
      "payto.account_identifiers_alias_email": {
        "type": "string",
        "title": "Email alias",
        "description": "A PayID email alias",
        "example": "default@example.com",
        "pattern": "^(?:[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)$"
      },
      "payto.account_identifiers_alias_organisation_identifier": {
        "type": "string",
        "title": "Organisation alias",
        "description": "A PayID organisation identifier alias",
        "example": "Zepto Pty Ltd, Byron Bay NSW",
        "pattern": "^[!-@\\[-~][ -@\\[-~]{0,254}[!-@\\[-~]$"
      },
      "payto.account_identifiers_alias_phone": {
        "type": "string",
        "title": "Phone alias",
        "description": "A PayID phone alias. e.g. +61-411222333",
        "example": "+61-411222333",
        "pattern": "^\\+[0-9]{1,3}-[1-9]{1,1}[0-9]{1,29}$"
      },
      "payto.account_identifiers_bban": {
        "type": "string",
        "title": "BBAN",
        "description": "A branch code (BSB) and account number separated with a hyphen",
        "example": "123456-98765432",
        "pattern": "^\\d{6}-[ -~]{1,28}$"
      },
      "payto.event.base": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of the event that triggered the webhook delivery. Value is a UUIDv7",
            "example": "019c6f54-1117-7a38-89ae-841bb4e4ac67"
          },
          "type": {
            "type": "string",
            "description": "The type of event that triggered the webhook delivery",
            "example": "payto_payment.settled"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event was published by Zepto",
            "example": "2023-03-07T22:50:40Z"
          },
          "resource_uid": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9\\-._~]+$",
            "description": "Supplied unique identifier for resource that the event affected, maximum 64 characters containing only unreserved characters as defined in RFC3986.",
            "example": "biz_20221231_G7MQWwkQZIP8vbfH"
          },
          "resource_type": {
            "type": "string",
            "description": "The type of resource the resource_uid relates to",
            "enum": [
              "payto_agreement",
              "payto_payment",
              "payto_refund"
            ],
            "example": "payto_payment"
          },
          "body": {
            "type": "object",
            "nullable": true,
            "example": null
          }
        },
        "required": [
          "id",
          "type",
          "published_at",
          "resource_uid",
          "resource_type",
          "body"
        ]
      },
      "payto.event.payto_payment.failed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payto.event.base"
          },
          {
            "$ref": "#/components/schemas/payto.event.resource_metadata"
          },
          {
            "type": "object",
            "properties": {
              "body": {
                "type": "object",
                "description": "Payment failure details",
                "properties": {
                  "failure": {
                    "$ref": "#/components/schemas/payto.payment_failure"
                  }
                },
                "required": [
                  "failure"
                ]
              }
            }
          }
        ]
      },
      "payto.event.payto_payment.settled": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payto.event.base"
          },
          {
            "$ref": "#/components/schemas/payto.event.resource_metadata"
          }
        ]
      },
      "payto.event.resource_metadata": {
        "type": "object",
        "properties": {
          "resource_metadata": {
            "type": "object",
            "description": "Custom metadata that was supplied to the API when the affected resource was created.",
            "nullable": true,
            "example": {
              "custom_key": "custom_value"
            }
          }
        },
        "required": [
          "id",
          "type",
          "published_at",
          "resource_uid",
          "resource_type",
          "body"
        ]
      },
      "payto.generic_error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "example": "Title of error"
          },
          "detail": {
            "type": "string",
            "description": "A short description of the error",
            "example": "Description of error"
          },
          "links": {
            "type": "object",
            "properties": {
              "about": {
                "type": "string",
                "description": "An optional link to more information on the error",
                "example": "https://docs.zeptopayments.com/docs/zepto-environments"
              }
            },
            "required": [
              "about"
            ]
          },
          "meta": {
            "type": "object",
            "description": "Optional meta information about the error",
            "properties": {
              "resource_ref": {
                "type": "string",
                "description": "Resource reference of the resource impacted by the error",
                "example": "P2PAY.1000"
              },
              "resource_uid": {
                "type": "string",
                "description": "Supplied ID of the resource impacted by the error",
                "example": "payment_34fj8djh2"
              }
            }
          }
        },
        "required": [
          "title",
          "detail"
        ]
      },
      "payto.generic_errors": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/payto.generic_error"
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "payto.payment_failure": {
        "type": "object",
        "description": "Details about the payment failure, when the state is 'failed'",
        "required": [
          "title",
          "detail",
          "code",
          "retryable"
        ],
        "nullable": true,
        "properties": {
          "title": {
            "type": "string",
            "description": "A short description of the reason or failure",
            "example": "Agreement Status Invalid"
          },
          "detail": {
            "type": "string",
            "description": "A longer description of the reason or failure",
            "example": "Contact Zepto for more information - The requested operation cannot be performed for the current status of the agreement"
          },
          "code": {
            "type": "string",
            "description": "A unique identifier for this specific type of reason or failure",
            "example": "MMS.API.9104",
            "enum": [
              "ZPPAY24",
              "AB01",
              "AB02",
              "AB03",
              "AB04",
              "AB08",
              "AC02",
              "AC03",
              "AC05",
              "AC06",
              "AC07",
              "AC13",
              "AC14",
              "AC15",
              "AG01",
              "AG03",
              "AG07",
              "AGNT",
              "AM01",
              "AM02",
              "AM03",
              "AM04",
              "AM06",
              "AM09",
              "AM12",
              "AM19",
              "AM21",
              "BE05",
              "BE06",
              "BE08",
              "BE22",
              "CH20",
              "CH21",
              "CURR",
              "CUST",
              "DT02",
              "DT04",
              "ED05",
              "ED06",
              "FF04",
              "FF08",
              "FF10",
              "FF11",
              "FRAD",
              "MD01",
              "MD02",
              "MD20",
              "MS02",
              "MS03",
              "NARR",
              "NAUT",
              "RR02",
              "RR03",
              "RR04",
              "RC05",
              "SL01",
              "SL11",
              "SL12",
              "SL13",
              "SL14",
              "TD03",
              "TM01",
              "AVED",
              "BVSD",
              "MCGP",
              "NACT",
              "ZPUNP01",
              "ZPUNP02",
              "ZPUNP06",
              "ZPUNP07",
              "ZPUNP08",
              "UKNWN"
            ]
          },
          "retryable": {
            "type": "boolean",
            "example": false,
            "description": "A boolean value indicating whether or not this payment can be retried."
          }
        }
      },
      "payto.retry_payment_request": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "creditor": {
            "type": "object",
            "description": "Who and where the payment is sent to. Optional - defaults to creditor details from agreement (if present), or the existing creditor details from the payment.",
            "required": [
              "ultimate_party_name",
              "party_name",
              "account_identifier"
            ],
            "properties": {
              "party_name": {
                "type": "string",
                "example": "Jane Smith",
                "minLength": 1,
                "maxLength": 140,
                "pattern": "^[ -~]+$",
                "description": "The name of the creditor party must accurately represent the creditor party and may be the same as the ultimate_party_name."
              },
              "ultimate_party_name": {
                "type": "string",
                "nullable": true,
                "example": "Jane Smith",
                "minLength": 1,
                "maxLength": 140,
                "pattern": "^[ -~]+$",
                "description": "The ultimate creditor name must accurately represent the ultimate creditor party and may be the same as the party_name."
              },
              "account_identifier": {
                "$ref": "#/components/schemas/payto.account_identifier"
              },
              "payment_account_uid": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9\\-._~]+$",
                "description": "The uid of a payment account registered via the Counterparties API, identifying the party behind the nominated account. Its account identifier must match account_identifier and its party_name must match the creditor ultimate_party_name, ignoring case. A creditor supplied here replaces the payment's creditor in full: omitting payment_account_uid leaves the payment without one, and when the agreement names a payment account the uid must match it.",
                "example": "pa_20221231_G7MQWwkQZIP8vbfH"
              }
            }
          },
          "sandbox": {
            "type": "object",
            "required": [
              "simulate"
            ],
            "description": "SANDBOX ONLY: Parameter that allows you to simulate certain scenarios in regards to the payment retry to aid integrators while testing their control flows.",
            "properties": {
              "simulate": {
                "type": "string",
                "enum": [
                  "auto_settle",
                  "requires_investigation",
                  "investigate_and_settle",
                  "investigate_and_fail",
                  "insufficient_funds",
                  "creditor_account_type_not_supported",
                  "creditor_account_closed",
                  "debtor_account_closed",
                  "financial_infrastructure_unavailable",
                  "debtor_alias_not_found",
                  "creditor_alias_not_found",
                  "alias_resolution_service_unavailable"
                ]
              },
              "delay": {
                "type": "integer",
                "description": "An optional attribute that will delay the requested simulation by the given amount of seconds. If `delay` is not provided (default behaviour), the simulated action will happen instantly."
              }
            }
          }
        }
      },
      "payto.unprocessable_payment_retry_error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "detail",
          "code"
        ],
        "properties": {
          "title": {
            "type": "string",
            "example": "Title of error"
          },
          "code": {
            "type": "string",
            "description": "A code assigned to the type of error received",
            "example": "E100",
            "enum": [
              "ZPUNP00",
              "ZPUNP01",
              "ZPUNP02",
              "ZPUNP03",
              "ZPUNP04",
              "ZPUNP05",
              "ZPUNP06",
              "ZPUNP07",
              "ZPUNP08",
              "ZPUNP09",
              "ZPUNP10",
              "ZPUNP11",
              "ZPPRY00",
              "ZPPRY01",
              "ZPPRY02",
              "ZPPRY03",
              "ZPPRY04",
              "ZPPRY05",
              "ZPREF06"
            ]
          },
          "detail": {
            "type": "string",
            "description": "A short description of the error",
            "example": "Description of error"
          },
          "links": {
            "type": "object",
            "properties": {
              "about": {
                "type": "string",
                "description": "An optional link to more information on the error",
                "example": "https://docs.zeptopayments.com/docs/zepto-environments"
              }
            },
            "required": [
              "about"
            ]
          },
          "meta": {
            "type": "object",
            "description": "Optional meta information about the error",
            "properties": {
              "resource_ref": {
                "type": "string",
                "description": "Resource reference of the resource impacted by the error",
                "example": "P2PAY.1000"
              },
              "resource_uid": {
                "type": "string",
                "description": "Supplied ID of the resource impacted by the error",
                "example": "payment_34fj8djh2"
              }
            }
          }
        }
      },
      "payto.unprocessable_payment_retry_errors": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/payto.unprocessable_payment_retry_error"
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "payto.webhook.base": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/payto.event.base"
          },
          "links": {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "description": "The api url to the resource",
                "example": "https://api.zeptopayments.com/payto/payments/biz_20221231_G7MQWwkQZIP8vbfH"
              }
            }
          }
        },
        "required": [
          "data",
          "links"
        ]
      },
      "payto.webhook.payto_payment.failed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payto.webhook.base"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/payto.event.payto_payment.failed"
              }
            }
          },
          {
            "type": "object",
            "example": {
              "data": {
                "type": "payto_payment.failed",
                "resource_type": "payto_payment"
              },
              "links": {
                "resource": "https://api.zeptopayments.com/payto/payments/biz_20221231_G7MQWwkQZIP8vbfH"
              }
            }
          }
        ]
      },
      "payto.webhook.payto_payment.settled": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payto.webhook.base"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/payto.event.payto_payment.settled"
              }
            }
          },
          {
            "type": "object",
            "example": {
              "data": {
                "type": "payto_payment.settled",
                "resource_type": "payto_payment"
              },
              "links": {
                "resource": "https://api.zeptopayments.com/payto/payments/biz_20221231_G7MQWwkQZIP8vbfH"
              }
            }
          }
        ]
      }
    }
  }
}
```