Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json

update an instance of payments with different phases of payment flows.

update an instance of payments with different phases of payment flows.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 4 body fields
AccountSidstringrequired
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource.
CallSidstringrequired
The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource.
Sidstringrequired
The SID of Payments session that needs to be updated.
IdempotencyKeystringrequired
A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
StatusCallbackstringrequired
Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
Capturestringoptional
The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, `bank-account-number`, or their `-matcher` variants for input confirmation when `RequireMatchingInputs` is enabled.
Allowed:payment-card-numberexpiration-datesecurity-codepostal-codebank-routing-numberbank-account-numberpayment-card-number-matcherexpiration-date-matchersecurity-code-matcherpostal-code-matcher
Statusstringoptional
Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected Pay Connector for processing.
Allowed:completecancel

1 status code
202Accepted
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
call_sidstringoptional
The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF.
sidstringoptional
The SID of the Payments resource.
date_createdstringoptional
The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
uristringoptional
The URI of the resource, relative to `https://api.twilio.com`.