Twilio: Payment schemas
2 Twilio schemas with complete fields and constraints.
← Payment operations · All schemas
create an instance of payments This will start a new payments session — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
account_sid | JSON | Optional | |
account_sid (anyOf 1) | string | Alternative | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. Maximum length: 34 Minimum length: 34 Pattern: ^AC[0-9a-fA-F]{32}$ |
account_sid (anyOf 2) | null | Alternative | |
call_sid | JSON | Optional | |
call_sid (anyOf 1) | string | Alternative | 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. Maximum length: 34 Minimum length: 34 Pattern: ^CA[0-9a-fA-F]{32}$ |
call_sid (anyOf 2) | null | Alternative | |
date_created | JSON | Optional | |
date_created (anyOf 1) | string | Alternative | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_created (anyOf 2) | null | Alternative | |
date_updated | JSON | Optional | |
date_updated (anyOf 1) | string | Alternative | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_updated (anyOf 2) | null | Alternative | |
sid | JSON | Optional | |
sid (anyOf 1) | string | Alternative | The SID of the Payments resource. Maximum length: 34 Minimum length: 34 Pattern: ^PK[0-9a-fA-F]{32}$ |
sid (anyOf 2) | null | Alternative | |
uri | JSON | Optional | |
uri (anyOf 1) | string | Alternative | The URI of the resource, relative to `https://api.twilio.com`. |
uri (anyOf 2) | null | Alternative |
update an instance of payments with different phases of payment flows — request body — body Capture
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | The piece of payment information the caller should enter: payment-card-number, expiration-date, security-code, postal-code, bank-routing-number, or bank-account-number. RequireMatchingInputs supports -matcher variants only for the four card fields; ACH bank routing and account number matching is not supported. One of: payment-card-number, expiration-date, security-code, postal-code, bank-routing-number, bank-account-number, payment-card-number-matcher, expiration-date-matcher, security-code-matcher, postal-code-matcher |