Create payout application
POST/svc/ts/api/v2/payout_applications
Creates a payout application. On success the stored status is Pending for Transfer (inserted as Initiated, then updated in the same transaction).
Server validation order
- JSON must parse.
- If
store_idis non-empty: resolve sub-store → setx-p-business-id; fail with820012when not found. x-p-business-idmust be present; required body fields non-empty:currency,ref_id,verify_code,staff_id;amountmust be > 0 (500013if ≤ 0).- Business (store) must be Active.
- Currency must be enabled; amount decimal places must match currency rules.
ref_idmust be unique for the merchant.- Within a transaction: insert record, then set status to
Pending for Transferand persistexpired_at.
Request
Responses
- 200
- 400
- 401
- 429
- 500
Created successfully
Response Headers
Parameter or business validation failed
Response Headers
Authentication failed (API gateway)
Response Headers
Rate limit exceeded (burst 20, 10/s)
Response Headers
Internal error