POST v1/ProfilePersons/{id}/SavedPaymentMethods/createVaultSetupToken

Create PayPal Setup Token for SPM

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SetupTokenInput
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SetupTokenInput'.

Response Information

Resource Description

setuptokenOutput
NameDescriptionTypeAdditional 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>