create an instance of payments. This will start a new payments session
POST
/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json 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 ;
ChargeAmount?: number;
Currency?: string;
Description?: string;
Input?: string;
MinPostalCodeLength?: number;
Parameter?: unknown;
PaymentConnector?: string;
PaymentMethod?:PaymentsEnumPaymentMethod ;
PostalCode?: boolean;
SecurityCode?: boolean;
Timeout?: number;
TokenType?:PaymentsEnumTokenType ;
ValidCardTypes?: string;
}
IdempotencyKey: string;
StatusCallback: string;
BankAccountType?:
ChargeAmount?: number;
Currency?: string;
Description?: string;
Input?: string;
MinPostalCodeLength?: number;
Parameter?: unknown;
PaymentConnector?: string;
PaymentMethod?:
PostalCode?: boolean;
SecurityCode?: boolean;
Timeout?: number;
TokenType?:
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;
}
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;
}