POST v1/ProfilePersons/{id}/SavedPaymentMethods/createVaultSetupToken
Create PayPal Setup Token for SPM
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
SetupTokenInput| Name | Description | Type | Additional information |
|---|---|---|---|
| PersonID | string |
Required |
|
| IsStandardCheckout | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"PersonID": "sample string 1",
"IsStandardCheckout": true
}
text/html
Sample:
{"PersonID":"sample string 1","IsStandardCheckout":true}
application/xml, text/xml
Sample:
<v1_ProfilePersons_ProfilePersonEndpointController.SetupTokenInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint"> <IsStandardCheckout>true</IsStandardCheckout> <PersonID>sample string 1</PersonID> </v1_ProfilePersons_ProfilePersonEndpointController.SetupTokenInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
setuptokenOutput| Name | Description | Type | Additional information |
|---|---|---|---|
| outputSetupToken | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"outputSetupToken": "sample string 1"
}
text/html
Sample:
{"outputSetupToken":"sample string 1"}
application/xml, text/xml
Sample:
<v1_ProfilePersons_ProfilePersonEndpointController.setuptokenOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint"> <outputSetupToken>sample string 1</outputSetupToken> </v1_ProfilePersons_ProfilePersonEndpointController.setuptokenOutput>