The POST /payments/{id} call allows your platform to update and add custom data to a payment.
INVALID_PARAMS
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "custom_data": {
- "Another Key": "some value",
- "a_reference_number": 4
}, - "rbits": null,
- "reference_id": "dfeb052b-ae8c-4a69-b909-8d9ecdd7c742"
}
{- "amount": 1000,
- "amount_refunded": 1000,
- "amount_disputed": 1000,
- "auto_capture": false,
- "capture_at": null,
- "create_time": 1510079535,
- "currency": "USD",
- "custom_data": {
- "invoice_id": "54321"
}, - "failure_reason": null,
- "fee_amount": 0,
- "fee_amount_refundable": 0,
- "id": "00000000-0000-0000-0000-00006fa82d45",
- "order": null,
- "owner": {
- "id": "be2b42e5-b808-40ae-9bbe-3291ab493f57",
- "path": "/accounts/be2b42e5-b808-40ae-9bbe-3291ab493f57",
- "resource": "accounts"
}, - "path": "/payments/00000000-0000-0000-0000-00006fa82d45",
- "payment_method": {
- "id": "00000000-6261-5553-0000-0000000001b8",
- "path": "/payment_methods/00000000-6261-5553-0000-0000000001b8",
- "resource": "payment_methods"
}, - "pending_reasons": [
- {
- "details": [ ],
- "reason_code": "PROCESSING",
- "reason_message": "Payment is being processed."
}
], - "resource": "payments",
- "status": "pending",
- "authorization_code": "0224241",
- "txnr_app_fee": null,
- "txnr_merchant": null,
- "initiated_by": "none",
- "api_version": "3.2",
- "reference_id": "dfeb052b-ae8c-4a69-b909-8d9ecdd7c742"
}