v1
latestOpenAPI 3.0.02026-07-24126202516.7 KBPayTo Agreements
Amend PayTo Agreement Status
Amend Status of a particular agreement via its UUID. Below status amends are possible via this API:
- ACTIVE -> SUSPENDED
- ACTIVE -> CANCELLED
- SUSPENDED -> ACTIVE (only if suspended via Zai)
- SUSPENDED -> CANCELLED
Only one status amendment is allowed at any given point of time. Example - If a request to suspend the agreement is already in progress, another status change request will not be accepted until the first completes.
Resuming a suspended agreement can only be performed by the party that suspended the agreement.
Hence, moving the agreement from SUSPENDED to ACTIVE will be accepted only if the Suspension was performed via Zai. CANCELLED is final agreement status and hence is irreversible.
patch/agreements/{agreement_uuid}/status
Path parameters
agreement_uuidstring required
Example:d0c40d95-95b7-449b-9835-3c97c0386585
Request body
Example request
{
"status": "SUSPENDED",
"reason_description": "Reason description"
}Response
Accepted
Example response
{
"agreement_uuid": "ae07556e-22ef-11eb-adc1-0242ac12000",
"agreement_id": "ef0fcd9799431ef783204966f010603c",
"status": "ACTIVE",
"created_at": "2022-03-21 16:25:00.190831",
"updated_at": "2022-03-22 16:25:00.190831"
}