---
title: "Amend PayTo Agreement Details"
method: PATCH
path: "/agreements/{agreement_uuid}/amend"
tags: ["PayTo Agreements"]
---

# Amend PayTo Agreement Details

`PATCH /agreements/{agreement_uuid}/amend`

Amend details of a particular agreement via its UUID. There are two types of amendments possible via this operation:
- Unilateral amendments - which does not need debtor approval and will be effective immediately
- Bilateral amendments - which does require debtor approval and will be effective post debtor authorisation

Optional fields can also be cleared via an amend request if needed. Passing an hyphen(-) character for any optional field would indicate its value needs to be cleared.

Either unilateral or bilateral amendments will be accepted in an amendment request. Both types of amendments cannot be provided in a single request.

At any given point of time, only a single unilateral or a single bilateral amendment will be allowed. Example - If a bilateral amendment is already in progress, another bilateral amendment request will not be accepted until the first completes.

Unilateral details that can be amended:
- description
- short_description
- creditor_info
- payment_initiator_info

Bilateral details that can be amended:
- validity_end_date
- transfer_arrangement
- automatic_renewal
- payment_terms - payment_amount_info, first_payment_info, last_payment_info, maximum_amount_info and point_in_time can be amended at any point however frequency and count_per_period can be amended only if no payments have been requested for the agreement yet.

Note - Bilateral amendments will be effective only post debtor authorization. Debtor should authorize the amendments within 5 days (default duration) or within the custom expiry duration (response_requested_by) specified in the amendment request.

## Path parameters

- `agreement_uuid` string, required

## Request body

- AmendAgreementDetailsRequest — Request to amend the details of an agreement. **Property descriptions**: - **priority** - Priority of the agreement amendment authorisation notification to be sent to the user for approval. Supported values: - **Attended** - If the marketplace wants the debtor user to be notified about the agreement amendment authorisation action immediately, the priority should be set as Attended. - **Unattended** - If the marketplace wants the debtor user to be notified about the agreement amendment authorisation at an appropriate time (not immediately), the priority should be set as Unattended. - **response_requested_by** - This field can be used to specify a custom expiry duration for the authorisation request pending debtor’s approval. Any duration which is less than the default & max duration of 5 days will be accepted. Example - If you want the debtor to approve the changes proposed on the agreement within 15 mins post creation, mention the duration in this field accordingly. However, post the duration (after 15 mins), you would need to invoke the Recall API to expire this authorisation request. - **unilateral_amendments** - Specifies fields for which amendments are effective immediately and do not require debtor authorisation. - **bilateral_amendments** - Specifies fields for which amendments are effective only post debtor authorisation.
  - `priority` 'ATTENDED' | 'UNATTENDED', required — <p>Identifies the arrangement (attended or unattended).</p> Priority of the agreement amendment authorisation notification to be sent to the user for approval.<table><tr><td>Code</td><td>Description</td></tr><tr><td>ATTENDED</td><td>If the marketplace wants the debtor user to be notified about the agreement amendment authorisation action immediately, the priority should be set as Attended.</td></tr><tr><td>UNATTENDED</td><td>If the marketplace wants the debtor user to be notified about the agreement amendment authorisation at an appropriate time (not immediately), the priority should be set as Unattended.</td></tr></table>
  - `response_requested_by` string, yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]'Z' — A date expressed in the YYYY-MM-DD'T'HH:mm:ss[.SSS][.SS][.S]'Z' format and in Australia timezone. This field can be used to specify a custom expiry duration for the authorisation request pending debtor’s approval. Any duration which is less than the default & max duration of 5 days will be accepted. Example - If you want the debtor to approve the changes proposed on the agreement within 15 mins post creation, mention the duration in this field accordingly. However, post the duration (after 15 mins), you would need to invoke the Recall API to expire this authorisation request.
  - `unilateral_amendments` UnilateralAmendments — Specific characteristics about the unilateral fields. Specifies fields for which amendments are effective immediately and do not require debtor authorisation. **Property descriptions**: - **description** - Describes what the agreement is being established for. Examples include a product, particular service offering, etc. If the description is less than 35 characters, then the Short Description should be used instead of the Description field. If this property is omitted then the description will not be modified as part of the amendment. Set this property to "-" to indicate that the description is to be cleared on the agreement. - **short_description** - Describes what the agreement is being established for. Examples include a product, particular service offering, etc. If the description is less than 35 characters, then the Short Description should be used instead of the Description field. If this property is omitted then the short description will not be modified as part of the amendment. Set this property to "-" to indicate that the short description is to be cleared on the agreement. - **creditor_info** - Creditor Details. If this property is omitted then the creditor information will not be modified as part of the amendment. - **payment_initiator_info** - Initiating party details. If this property is omitted then the payment initiator information will not be modified as part of the amendment.
    - `description` string — Specifies a character string with a maximum length of 140 characters. Describes what the agreement is being established for. Examples include a product, particular service offering, etc. If the description is less than 35 characters, then the Short Description should be used instead of the Description field. If this property is omitted then the description will not be modified as part of the amendment. Set this property to "-" to indicate that the description is to be cleared on the agreement.
    - `short_description` string — Specifies a character string with a maximum length of 35 characters. Describes what the agreement is being established for. Examples include a product, particular service offering, etc. If the description is less than 35 characters, then the Short Description should be used instead of the Description field. If this property is omitted then the short description will not be modified as part of the amendment. Set this property to "-" to indicate that the short description is to be cleared on the agreement.
    - `creditor_info` AmendCreditorInformation — Information concerning the creditor party identified in the agreement. **Property descriptions**: - **ultimate_creditor_name** - This field can indicate trading the name or common name of the marketplace/platform which is receives the funds via Zai OR could be the actual seller user's name to which the funds will be transferred eventually. - **creditor_reference** - Reference relevant to the Creditor. Example - Invoice number.
      - `ultimate_creditor_name` string — Specifies a character string with a maximum length of 140 ASCII printable characters. This field can indicate trading the name or common name of the marketplace/platform which is receives the funds via Zai OR could be the actual seller user's name to which the funds will be transferred eventually.
      - `creditor_reference` string — Specifies a character string with a maximum length of 35 ASCII printable characters. Reference relevant to the Creditor. Example - Invoice number.
    - `payment_initiator_info` AmendPaymentInitiatorInformation — Initiating party details. **Property descriptions**: - **initiator_id** - Unique and unambiguous identification of the initiator. - **initiator_id_type_code** - Code indicating the identification type of the initiator.For example in the case of a private individual; passport, driver licence, or 100 point check, or in the case of an organisation; LEI, ACN, ABN - **initiator_legal_name** - Name by which the initiator is legally known. - **initiator_name** - Name by which the initiator is known and which is usually used to identify them.
      - `initiator_id` string — Specifies a character string with a maximum length of 35 ASCII printable characters. Unique and unambiguous identification of the initiator.
      - `initiator_id_type_code` 'AUBN' | 'CCPT' | 'CUST' | 'DRLC' | 'EMPL' | 'NIDN' | 'SOSE' | 'TXID' | 'BANK' | 'CBID' | 'CHID' | 'CINC' | 'COID' | 'DUNS' | 'GS1G' | 'SREN' | 'SRET' | 'AUBN' | 'AUCN' | 'LEIN' — <p>Specifies an alphanumeric string with a length of 4 characters.</p> Code indicating the identification type of the initiator.For example in the case of a private individual; passport, driver licence, or 100 point check, or in the case of an organisation; LEI, ACN, ABN<table><tr><td>Code</td><td>Description</td></tr><tr><td>ARNU</td><td>Alien Registration Number</td></tr><tr><td>CCPT</td><td>Passport Number</td></tr><tr><td>CUST</td><td>Customer Identification Number</td></tr><tr><td>DRLC</td><td>Drivers License Number</td></tr><tr><td>EMPL</td><td>Employee Identification Number</td></tr><tr><td>NIDN</td><td>National Identity Number</td></tr><tr><td>SOSE</td><td>Social Security Number</td></tr><tr><td>TXID</td><td>Tax Identification Number</td></tr><tr><td>BANK</td><td>Bank Party Identification</td></tr><tr><td>CBID</td><td>Central Bank Identification Number</td></tr><tr><td>CHID</td><td>Clearing Identification Number</td></tr><tr><td>CINC</td><td>Certificate Of Incorporation Number</td></tr><tr><td>COID</td><td>Country Identification Code</td></tr><tr><td>DUNS</td><td>Data Universal Numbering System</td></tr><tr><td>GS1G</td><td>GS1GLN Identifier</td></tr><tr><td>SREN</td><td>SIREN</td></tr><tr><td>SRET</td><td>SIRET</td></tr><tr><td>AUBN</td><td>Australian Business Number (ABN)</td></tr><tr><td>AUCN</td><td>Australian Company Number (ACN)</td></tr><tr><td>LEIN</td><td>Legal Entity Identification (LEI)</td></tr></table>
      - `initiator_legal_name` string — Specifies a character string with a maximum length of 140 ASCII printable characters. Name by which the initiator is legally known.
      - `initiator_name` string — Specifies a character string with a maximum length of 140 ASCII printable characters. Name by which the initiator is known and which is usually used to identify them.
  - `bilateral_amendments` BilateralAmendments — Specific characteristics about the bilateral fields. Specifies fields for which amendments are effective only post debtor authorisation. **Property descriptions**: - **automatic_renewal** - Automatic renewal of an agreement at the end of the defined period. An example of an automatically renewing agreement might be a gym membership that automatically rolls over, or a phone contract. If this property is omitted then the automatic renewal will not be modified as part of the amendment. - **validity_end_date** - Validity end date of the agreement. If specified, the agreement is valid until 23:59:59.999 Australia Sydney time on this date. If this property is omitted then the validity end date will not be modified as part of the amendment. Set this property to "-" to indicate that the validity end date is to be cleared on the agreement. Note - Clearing validity end date requires to provide the auto-renewal property (automatic_renewal=true) - **transfer_arrangement** - Additional details about the agreement terms with consideration to the transfer of items/goods/services. Examples might include payment of shares, transfer of property, or fulfilment of a purchase order. If this property is omitted then the transfer arrangement will not be modified as part of the amendment. Set this property to "-" to indicate that the transfer arrangement is to be cleared on the agreement. - **payment_terms** - Set of characteristics detailing agreement payment information. Payment terms like payment_amount_info, first_payment_info, last_payment_info, maximum_amount_info and point_in_time can be amended at any point; however, frequency and count_per_period can be amended only if no payments have been requested for the agreement yet. If this property is omitted then the payment information will not be modified as part of the amendment. The following rules apply to this structure: - **ValidityEndDateRule:** validity_end_date should be greater than OR same as validity_start_date. - **AutomaticExtensionRule:** validity_end_date should not be provided if agreement should be auto-renewed.
    - `automatic_renewal` boolean — Indicates a "Yes" or "No" type of automatic renewal. Automatic renewal of an agreement at the end of the defined period. An example of an automatically renewing agreement might be a gym membership that automatically rolls over, or a phone contract. If this property is omitted then the automatic renewal will not be modified as part of the amendment.
    - `validity_end_date` string, yyyy-MM-dd — A particular point in the progression of time in a calendar year expressed in the YYYY-MM-DD format.This representation is defined in "XML Schema Part 2: Datatypes Second Edition - W3C Recommendation 28 October 2004" which is aligned with ISO 8601. Validity end date of the agreement. If specified, the agreement is valid until 23:59:59.999 Australia Sydney time on this date. If this property is omitted then the validity end date will not be modified as part of the amendment. Set this property to "-" to indicate that the validity end date is to be cleared on the agreement. Note - Clearing validity end date requires to provide the auto-renewal property (automatic_renewal=true)
    - `transfer_arrangement` string — Specifies a character string with a maximum length of 140 characters. Additional details about the agreement terms with consideration to the transfer of items/goods/services. Examples might include payment of shares, transfer of property, or fulfilment of a purchase order. If this property is omitted then the transfer arrangement will not be modified as part of the amendment. Set this property to "-" to indicate that the transfer arrangement is to be cleared on the agreement.
    - `payment_terms` AmendPaymentTermsDetails — Specifies payment terms for the agreement i.e. amount that can be debited per payment, min/max amounts, first and last payment terms etc. All the payments initiated should be as per agreement terms. It is very important to ensure the payments initiated **DO NOT BREACH** the agreement terms and conditions - this could lead to: Agreement claims by debtor/payer for an amount greater than the actual payment amount **Property descriptions**: - **payment_amount_info** - Specifies info around the amount type for the agreement (example: Fixed or Usage based amounts etc), amount that can be debited from the account depending on the type, and the currency in which the payments can be initiated. - **first_payment_info** - If the payment arrangement is such that the initial payment amount differs from the expected "regular" or "recurring" payment, then the first payment info can be specified in this field. Examples: Establishment fees are part of the first payment only. - **last_payment_info** - If the payment arrangement is such that there is a known final payment amount that differs from the expected "regular" or "recurring" payment, then the last payment info can be specified in this field. - **maximum_amount** - Represents the maximum amount that may be debited in any single payment initiation. - **payment_executed_not_before_time** - Specifies the Australia Sydney time after which payments may be initiated on the execution day (according to the frequency and other payment terms). Example - Payroll scenario, where the employer requests to not initiate payrolls until a particular time to ensure funds are available for the payment to occur. Setting this property to "-" indicates that the time is to be cleared on the agreement.<br><br> *Note - This parameter is currently not supported.* - **point_in_time** - Qualifies the frequency in terms of an exact point in time or moment within the specified period. The granularity of point in time is a subdivision of frequency.<br><br>Note - Specifying a point_in_time for payments is applicable only for "Monthly" frequency. Setting this property to "-" indicates that the point in time is to be cleared on the agreement. - Frequency = Adhoc -> point in time is not applicable - Frequency = IntraDay -> Point In Time = hour within day (1-24) - Frequency = Daily -> Point In Time = hour within day (1-24)) - Frequency = Weekly -> Point In Time = day of week (1-7) - Frequency = Fortnightly -> Point In Time = day within fortnight (1-14) - Frequency = Monthly -> Point In Time = day of month (1-28) - Frequency = Quarterly -> Point In Time = which month within the quarter of year (1-4) - Frequency = HalfYearly -> Point In Time = which month within the half of the year (1-6) - Frequency = Yearly -> Point In Time = month within the year (1-12) - **count_per_period** - Defines the number of authorised expected payments that are to be initiated according to the frequency. Example - With Frequency = Adhoc, Count Per Period can be used to specify a total number of allowed initiations. Setting this property to "-" indicates that the count per period is to be cleared on the agreement. - **frequency** - Represents the typical expected frequency with which payments will be initiated against the debtor for this arrangement. <br><br>*Note - Intraday, Quarterly, Half Yearly and Yearly payment frequencies are currently not supported.* Must be one of following: - Adhoc (Event takes place on request or as necessary) - Intraday (Event takes place several times a day) - Daily (Event takes place every day) - Weekly (Event takes place once a week) - Fortnightly (Event takes place every two weeks) - Half Yearly (Event takes place every six months or two times a year) - Monthly (Event takes place every month) - Quarterly (Event takes place every three months) - Yearly (Event takes place every year or once a year) **The following rules apply to this structure:** - **AgreementFirstPaymentRule1:** Date provided in first_payment_info should be between validity_start_date and validity_end_date OR can be same as validity_start_date and validity_end_date. - **AgreementLastPaymentRule2:** Date provided in last_payment_info should be between validity_start_date and validity_end_date OR can be same as validity_start_date and validity_end_date. - **LastAndFirstPaymentDate:** Date provided in last_payment_info should be same OR after the date provided in first_payment_info. - **CurrencyAUD:** All currencies must be in AUD only. - **AmountRule:** All amounts should be less than or equal to Maximum amount. - **PaymentAmountTypeRule:** If payment_amount_type code is equal to value 'FIXE' then amount must be present. - **FrequencyCombinationRule:** The frequency, point_in_time and count_per_period combination must be valid. Refer frequency rules table below for valid combinations. - **PaymentAmountTypeCombinationRule:** The payment_amount_type, amount and maximum_amount combination must be valid. Refer payment amount type rules table below for valid combination. **Rules for frequency:** Valid values for frequency, point_in_time and count_per_period are given below. <table><tr><td><b>frequency</b></td><td><b>point_in_time</b></td><td><b>count_per_period</b></td></tr><tr><td>ADHOC</td><td>N/A</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>INTRDY</td><td>01 to 24</td><td>Not present</td></tr><tr><td>INTRDY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>DAILY</td><td>01 to 24</td><td>Not present</td></tr><tr><td>DAILY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>DAILY</td><td>N/A</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>WEEKLY</td><td>01 to 07</td><td>Not present</td></tr><tr><td>WEEKLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>WEEKLY</td><td>N/A</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>FRTNLY</td><td>01 to 14</td><td>Not present</td></tr><tr><td>FRTNLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>FRTNLY</td><td>N/A</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>MNTHLY</td><td>01 to 28</td><td>Not present</td></tr><tr><td>MNTHLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>QURTLY</td><td>01 to 03</td><td>Not present</td></tr><tr><td>QURTLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>HFYRLY</td><td>01 to 06</td><td>Not present</td></tr><tr><td>HFYRLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr><tr><td>YEARLY</td><td>01 to 12</td><td>Not present</td></tr><tr><td>YEARLY</td><td>Not present</td><td>Valid non decimal numeric value, greater than zero</td></tr></table> **Payment amount types rules:** <table><tr><td><b>Payment_amount_type</b></td><td><b>amount</b></td><td><b>max_ Amount</b></td><td><b>Remarks</b></td></tr><tr><td>BALN</td><td>Valid numeric value</td><td>NA</td><td>If Balloon, only amount should have values. Max amount should not be present</td></tr><tr><td>FIXE</td><td>Valid numeric value</td><td>NA</td><td>If Fixed, only amount should have values. Max amount should not be present</td></tr><tr><td>USGB</td><td>Valid numeric value</td><td>Valid numeric value</td><td>If Usage based, max amount is recommended.However, amount and max amount are optional and if present, amount should be less than max amount</td></tr><tr><td>VARI</td><td>Valid numeric value</td><td>Valid numeric value</td><td>If Variable, max amount is recommended.However, amount and max amount are optional and if present, amount should be less than max amount</td></tr></table>
      - `payment_amount_info` AmendPaymentAmountInformation — Specifies info around the amount type for the agreement (example: Fixed or Usage based amounts etc), amount that can be debited from the account depending on the type, and the currency in which the payments can be initiated. **Property descriptions**: - **amount** - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment. - **currency** - Currency of the payment to debit the account. - **type** - Depending on the use-case for which the payment arrangement is being made, an appropriate amount type should be selected for the agreement as this defines the payments that can be initiated via the agreement. Supported values: - FIXE - Payments should be initiated for fixed amounts i.e. amount specified in the payment instruction must match the “amount” stated in the agreement. - BALN - Payments should be initiated for fixed amounts with large final payment amount i.e. for all the payments except the last, amount specified in the payment instruction must match the “amount” stated in the agreement. The last payment can be different and as per terms mentioned in the last payment amount fields (if specified).<br>*Note - This type is currently not supported.* - USGB - If the amount for the payment varies with usage (example - electricity bill), it is recommended to specify a max amount. If a value is specified in the “amount” field, this would be considered as base/min amount to be paid for each payment. Payments should be initiated as per agreement terms i.e. the amount specified in the payment instruction should be within the “amount” (min) and “maximum amount” stated in the agreement. - VARI - If the amount for the payment varies each time (example - grocery purchase billing), it is recommended to specify a max amount. If a value is specified in the “amount” field, this would be considered as base/min amount to be paid for each payment. Payments should be initiated as per agreement terms i.e. the amount specified in the payment instruction should be within the “amount” (min) and “maximum amount” stated in the agreement.
        - `amount` string — Specifies an amount in cents. - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment.
        - `currency` '{AUD}' — A code allocated to a currency by a Maintenance Agency under an international identification scheme as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds". Currency of the payment to debit the account.
        - `type` 'BALN' | 'FIXE' | 'USGB' | 'VARI' — <p>Specific type of payment amount.</p><p>Depending on the use-case for which the payment arrangement is being made, an appropriate amount type should be selected for the agreement as this defines the payments that can be initiated via the agreement.</p> <table><tr><td>Code</td><td>Name</td><td>Description</td></tr><tr><td>FIXE</td><td>Fixed</td><td>Payments should be initiated for fixed amounts i.e. amount specified in the payment instruction must match the “amount” stated in the agreement.</td></tr><tr><td>BALN</td><td>Balloon</td><td>Payments should be initiated for fixed amounts with large final payment amount i.e. for all the payments except the last, amount specified in the payment instruction must match the “amount” stated in the agreement. The last payment can be different and as per terms mentioned in the last payment amount fields (if specified).<br><i>Note - This type is currently not supported.</i></td></tr><tr><td>USGB</td><td>UsageBased</td><td>If the amount for the payment varies with usage (example - electricity bill), it is recommended to specify a max amount. If a value is specified in the “amount” field, this would be considered as base/min amount to be paid for each payment. Payments should be initiated as per agreement terms i.e. the amount specified in the payment instruction should be within the “amount” (min) and “maximum amount” stated in the agreement.</td></tr><tr><td>VARI</td><td>Variable</td><td>If the amount for the payment varies each time (example - grocery purchase billing), it is recommended to specify a max amount. If a value is specified in the “amount” field, this would be considered as base/min amount to be paid for each payment. Payments should be initiated as per agreement terms i.e. the amount specified in the payment instruction should be within the “amount” (min) and “maximum amount” stated in the agreement.</td></tr></table>
      - `first_payment_info` AmendFirstPaymentInformation — If the payment arrangement is such that the initial payment amount differs from the expected "regular" or "recurring" payment, then the first payment info can be specified in this field. Examples: Establishment fees are part of the first payment only. **Property descriptions**: - **amount** - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment. - **currency** - Currency of the payment to debit the account. - **date** - If the payment arrangement being established specifies the first date (until 23:59:59.999 Australia Sydney time, expressed in the YYYY-MM-DD format) on which payment is expected to be initiated, that date should be specified in this field. Setting this property to "-" indicates that the date is to be cleared on the agreement.
        - `amount` string — Specifies an amount in cents. - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment.
        - `currency` '{AUD}' — A code allocated to a currency by a Maintenance Agency under an international identification scheme as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds". Currency of the payment to debit the account.
        - `date` string, yyyy-MM-dd — A particular point in the progression of time in a calendar year expressed in the YYYY-MM-DD format. If the payment arrangement being established specifies the first date (until 23:59:59.999 Australia Sydney time, expressed in the YYYY-MM-DD format) on which payment is expected to be initiated, that date should be specified in this field. Setting this property to "-" indicates that the date is to be cleared on the agreement.
      - `last_payment_info` AmendLastPaymentInformation — If the payment arrangement is such that there is a known final payment amount that differs from the expected "regular" or "recurring" payment, then the last payment info can be specified in this field. **Property descriptions**: - **amount** - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment. - **currency** - Currency of the payment to debit the account. - **date** - If the payment arrangement being established specifies the date (until 23:59:59.999 Australia Sydney time, expressed in the YYYY-MM-DD format) on which payment is expected to be initiated, that date should be specified in this field. Setting this property to "-" indicates that the date is to be cleared on the agreement.
        - `amount` string — Specifies an amount in cents. - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment.
        - `currency` '{AUD}' — A code allocated to a currency by a Maintenance Agency under an international identification scheme as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds". Currency of the payment to debit the account.
        - `date` string, yyyy-MM-dd — A particular point in the progression of time in a calendar year expressed in the YYYY-MM-DD format. If the payment arrangement being established specifies the date (until 23:59:59.999 Australia Sydney time, expressed in the YYYY-MM-DD format) on which payment is expected to be initiated, that date should be specified in this field. Setting this property to "-" indicates that the date is to be cleared on the agreement.
      - `maximum_amount_info` AmendMaximumAmountInformation — Represents the maximum amount that may be debited in any single payment initiation. **Property descriptions**: - **amount** - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment. - **currency** - Currency of the payment to debit the account.
        - `amount` string — Specifies an amount in cents. - For FIXE type of agreements, as the amount to be debited is fixed, this indicates the amount to be debited per payment. - For BALN type of agreements, as the amount to be debited is fixed for all payments (except the last/final payment which can be for a larger amount), this field indicates the amount to be debited for all payments except the final/last. - For USGB/VARI type of agreements, this indicates the minimum amount that can be debited from the account per payment.
        - `currency` '{AUD}' — A code allocated to a currency by a Maintenance Agency under an international identification scheme as described in the latest edition of the international standard ISO 4217 "Codes for the representation of currencies and funds". Currency of the payment to debit the account.
      - `payment_executed_not_before_time` string — Specifies a time in the format HH:mm:ssZ. Specifies the Australia Sydney time after which payments may be initiated on the execution day (according to the frequency and other payment terms). Example - Payroll scenario, where the employer requests to not initiate payrolls until a particular time to ensure funds are available for the payment to occur. Setting this property to "-" indicates that the time is to be cleared on the agreement. *Note - This parameter is currently not supported.*
      - `point_in_time` string — Specifies a number in string format up to two digit. Qualifies the frequency in terms of an exact point in time or moment within the specified period. The granularity of point in time is a subdivision of frequency. Setting this property to "-" indicates that the point in time is to be cleared on the agreement. Note - Specifying a point_in_time for payments is applicable only for "Monthly" frequency.<table><tr><td>Frequency</td><td>Description</td></tr><tr><td>Adhoc</td><td>Point in time is not applicable</td></tr><tr><td>IntraDay</td><td>Point In Time = hour within day (1-24))</td></tr><tr><td>Daily</td><td>Point In Time = hour within day (1-24)</td></tr><tr><td>Weekly</td><td>Point In Time = day of week (1-7)</td></tr><tr><td>Fortnightly</td><td>Point In Time = day within fortnight (1-14)</td></tr><tr><td>Monthly</td><td>Point In Time = day of month (1-28)</td></tr><tr><td>Quarterly</td><td>Point In Time = day of month within the quarter of year (1-4)</td></tr><tr><td>HalfYearly</td><td>Point In Time = day of month within the half of the year (1-6)</td></tr><tr><td>Yearly</td><td>Point In Time = month within the year (1-12)</td></tr></table>
      - `count_per_period` string — Specifies a valid non decimal numeric value. Defines the number of authorised expected payments that are to be initiated according to the frequency. Example - With Frequency = Adhoc, Count Per Period can be used to specify a total number of allowed initiations. Setting this property to "-" indicates that the count per period is to be cleared on the agreement.
      - `frequency` 'ADHOC' | 'INTRDY' | 'DAILY' | 'WEEKLY' | 'FRTNLY' | 'MNTHLY' | 'QURTLY' | 'HFYRLY' | 'YEARLY' — <p>Represents the typical expected frequency with which payments will be initiated against the debtor for this arrangement.</p> *Note - Intraday, Quarterly, Half Yearly and Yearly payment frequencies are currently not supported.* <table><tr><td>Code</td><td>Name</td><td>Description</td></tr><tr><td>ADHOC</td><td>Adhoc</td><td>Event takes place on request or as necessary.</td></tr><tr><td>INTRDY</td><td>IntraDay</td><td>Event takes place several times a day.</td></tr><tr><td>DAILY</td><td>Daily</td><td>Event takes place every day.</td></tr><tr><td>WEEKLY</td><td>Weekly</td><td>Event takes place once a week.</td></tr><tr><td>FRTNLY</td><td>Fortnightly</td><td>Event takes place every two weeks.</td></tr><tr><td>MNTHLY</td><td>Monthly</td><td>Event takes place every month or once a month.</td></tr><tr><td>QURTLY</td><td>Quarterly</td><td>Event takes place every three months or four times a year.</td></tr><tr><td>HFYRLY</td><td>HalfYearly</td><td>Event takes place every six months or two times a year.</td></tr><tr><td>YEARLY</td><td>Yearly</td><td>Event takes place every year or once a year.</td></tr></table>

## Response `202`

Accepted

- AmendAgreementDetailsResponse — Specific characteristics of an agreement details amendment response.
  - `agreement_uuid` string — Unique agreement identifier.
  - `agreement_id` string — Unique agreement identifier generated by NPPA.
  - `status` 'SUSPENDED' | 'ACTIVE' — <p>Current status of the agreement before amendment.</p> <table><tr><td>Code</td><td>Description</td></tr><tr><td>SUSPENDED</td><td>The agreement is suspended.</td></tr><tr><td>ACTIVE</td><td>The agreement is active.</td></tr></table>
  - `created_at` string — creation date.
  - `updated_at` string — modification date.

## Other responses

- `400` — Bad Request <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></r><tr><td>PAYT-ERR-1050</td><td>Mandatory info missing: [FieldName] cannot be null or empty.</td></tr><tr><td>PAYT-ERR-1051</td><td>Invalid Data: [FieldName] provided is invalid.</td></tr><tr><td>PAYT-ERR-1052</td><td>Invalid Data: [FieldName] provided should contain any of the values [Acceptable values].</td></tr><tr><td>PAYT-ERR-1053</td><td>Invalid Data: [FieldName] provided is invalid. Expected format [DateFormat].</td></tr><tr><td>PAYT-ERR-1054</td><td>Invalid Data: [FieldName] length is invalid. Expected minimum [MinLength] and maximum [MaxLength].</td></tr><tr><td>PAYT-ERR-1057</td><td>Unrecognized Field: [FieldName] is not a valid field.</td></tr><tr><td>PAYT-ERR-1058</td><td>Invalid Request: request provided is not well-formatted.</td></tr><tr><td>PAYT-ERR-2002</td><td>Response_Requested_By date must be a future date and less than 5 days.</td></tr><tr><td>PAYT-ERR-2019</td><td>Amount provided in last_payment_info should be less than or equal to maximum amount.</td></tr><tr><td>PAYT-ERR-2020</td><td>Amount provided in first_payment_info should be less than or equal to maximum amount.</td></tr><tr><td>PAYT-ERR-2302</td><td>Either unilateral or bilateral amendments can be requested.</td></tr><tr><td>PAYT-ERR-2303</td><td>Details can be amended for 'ACTIVE' or 'SUSPENDED' agreements only.</td></tr><tr><td>PAYT-ERR-2304</td><td>Either description or short_description is mandatory for an agreement.</td></tr><tr><td>PAYT-ERR-2305</td><td>validity_end_date should not be provided if agreement should be auto-renewed.</td></tr><tr><td>PAYT-ERR-2306</td><td>validity_end_date should be greater than OR same as validity_start_date.</td></tr><tr><td>PAYT-ERR-2307</td><td>Date provided in last_payment_info should be same OR after the date provided in first_payment_info.</td></tr><tr><td>PAYT-ERR-2308</td><td>Date provided in first_payment_info should be between validity_start_date and validity_end_date OR can be same as validity_start_date and validity_end_date.</td></tr><tr><td>PAYT-ERR-2309</td><td>Date provided in last_payment_info should be between validity_start_date and validity_end_date OR can be same as validity_start_date and validity_end_date.</td></tr><tr><td>PAYT-ERR-2311</td><td>Incorrect value provided for either of these fields - frequency, point_in_time, count_per_period. The combination provided should be valid.</td></tr><tr><td>PAYT-ERR-2313</td><td>Amount provided in last_payment_info should be less than or equal to maximum amount.</td></tr><tr><td>PAYT-ERR-2314</td><td>Amount provided in first_payment_info should be less than or equal to maximum amount.</td></tr><tr><td>PAYT-ERR-2315</td><td>payment_amount should be less than or equal to maximum amount.</td></tr><tr><td>PAYT-ERR-2316</td><td>Invalid Request: At least one field should be provided for amendment.</td></tr><tr><td>PAYT-ERR-2318</td><td>Invalid Request: Values provided for few fields is same as existing. Please provide correct info for amendment.</td></tr><tr><td>PAYT-ERR-2319</td><td>A unilateral amendment for this agreement is already in progress. Please try again later.</td></tr><tr><td>PAYT-ERR-2320</td><td>Response_Requested_By is applicable only for bilateral amendment requests with 'ATTENDED' priority type.</td></tr><tr><td>PAYT-ERR-2321</td><td>For FIXE/BALN type of agreements, specifying payment amount is mandatory.</td></tr><tr><td>PAYT-ERR-2323</td><td>Invalid Data: Payment frequency [frequency] is not enabled for your platform. If you require this payment frequency to be enabled for your business use-case, kindly get in touch with Zai support.</td></tr><tr><td>PAYT-ERR-2324</td><td>Invalid Data: Payment parameter '[payment_parameter]' provided is not enabled for your platform. If you require this parameter to be enabled for your business use-case, kindly get in touch with Zai support.</td></tr><tr><td>PAYT-ERR-2325</td><td>Invalid Data: Payment amount type [amount_type] is not enabled for your platform. If you require this payment amount type to be enabled for your business use-case, kindly get in touch with Zai support.</td></tr><tr><td>PAYT-ERR-2328</td><td>Payment frequency cannot be modified if payments have already been requested as per current frequency. Please create a new agreement with the required frequency and cancel the existing agreement.</td></tr><tr><td>PAYT-ERR-2329</td><td>Payment parameter - count_per_period cannot be modified if payments have already been requested as per current frequency. Please create a new agreement with the required parameters and cancel the existing agreement.</td></tr><tr><td>PAYT-ERR-2330</td><td>Cannot amend payment parameter types (count_per_period v/s point_in_time) once payments have already been requested as per current frequency. Please create a new agreement with the required parameters and cancel the existing agreement.</td></tr></table>
- `401` — Unauthorised <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></tr><tr><td>PAYT-ERR-1000</td><td>Invalid or missing authorisation token.</td></tr></table>
- `403` — Forbidden <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></tr><tr><td>PAYT-ERR-1001</td><td>PayTo feature not available.</td></tr><tr><td>PAYT-ERR-1002</td><td>Request rejected: User associated with the agreement is not active.</td></tr></table>
- `404` — Not Found <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></tr><tr><td>PAYT-ERR-2300</td><td>Agreement with provided uuid does not exist.</td></tr></table>
- `409` — Conflict <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></tr><tr><td>PAYT-ERR-2301</td><td>A bilateral amendment for this agreement is already in progress. Please try again later.</td></tr><tr><td>PAYT-ERR-2319</td><td>A unilateral amendment for this agreement is already in progress. Please try again later.</td></tr></table>
- `500` — Internal Server Error <table><tr><td><b>Error Code</b></td><td><b>Error Message</b></td></tr><tr><td>PAYT-ERR-1003</td><td>An error occurred processing your request. Please try again.</td></tr></table>

---

[API](https://skmtc.net/hellozai/apis/assembly-api.md) · [All operations](https://skmtc.net/hellozai/apis/assembly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hellozai/assembly-api/revisions/60b528b2e015/schema)
