Search + K

Command Palette

Search for a command to run...

Sign In

create an instance of payments. This will start a new payments session

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json
Copy endpoint
https://api.twilio.com

create an instance of payments. This will start a new payments session

Parameters

path Path Parameters

Name Type
AccountSid required

The SID of the Account that will create the resource.

`AC${string}`
CallSid required

The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF.

`CA${string}`

Request Body

application/x-www-form-urlencoded
{
IdempotencyKey: string;
StatusCallback: string;
BankAccountType?: PaymentsEnumBankAccountType
type PaymentsEnumBankAccountType = "consumer-checking" | "consumer-savings" | "commercial-checking"
;
ChargeAmount?: number;
Currency?: string;
Description?: string;
Input?: string;
MinPostalCodeLength?: number;
Parameter?: unknown;
PaymentConnector?: string;
PaymentMethod?: PaymentsEnumPaymentMethod
type PaymentsEnumPaymentMethod = "credit-card" | "ach-debit"
;
PostalCode?: boolean;
SecurityCode?: boolean;
Timeout?: number;
TokenType?: PaymentsEnumTokenType
type PaymentsEnumTokenType = "one-time" | "reusable" | "payment-method"
;
ValidCardTypes?: string;
}

Responses

201 application/json

Created

interface ApiV2010AccountCallPayments {
account_sid?: `AC${string}` | null;
call_sid?: `CA${string}` | null;
sid?: `PK${string}` | null;
date_created?: string | null;
date_updated?: string | null;
uri?: string | null;
}