starbucks.payment_method.add
View connectorTokenize a card with Worldpay and add it to a Starbucks UK account
POST /v1/operations/starbucks.payment_method.addRestricted access · live-write. Examples use fictional values and do not execute requests.
Inputs
| Parameter | Example type | Example value |
|---|---|---|
| card_number | string | "4242424242424242" |
| cardholder | string | "Example Customer" |
| cvc | string | "123" |
| expiry_month | number | 12 |
| expiry_year | number | 2030 |
| billing_address | object | {"address_line_1":"1 Example Street","city":"London","postal_code":"SW1A 1AA"} |
| confirm_add | boolean | true |
Example input
{
"card_number": "4242424242424242",
"cardholder": "Example Customer",
"cvc": "123",
"expiry_month": 12,
"expiry_year": 2030,
"billing_address": {
"address_line_1": "1 Example Street",
"city": "London",
"postal_code": "SW1A 1AA"
},
"confirm_add": true
}Input schema
{
"$id": "https://priv-platform.local/connectors/starbucks/payment-method-add.input.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"billing_address": {
"additionalProperties": false,
"properties": {
"address_line_1": {
"maxLength": 160,
"minLength": 1,
"type": "string",
"x-sensitive": true
},
"address_line_2": {
"maxLength": 160,
"type": "string",
"x-sensitive": true
},
"city": {
"maxLength": 100,
"minLength": 1,
"type": "string",
"x-sensitive": true
},
"postal_code": {
"maxLength": 24,
"minLength": 1,
"type": "string",
"x-sensitive": true
}
},
"required": [
"address_line_1",
"city",
"postal_code"
],
"type": "object"
},
"card_number": {
"pattern": "^[0-9]{12,19}$",
"type": "string",
"x-sensitive": true
},
"cardholder": {
"maxLength": 120,
"minLength": 1,
"type": "string",
"x-sensitive": true
},
"confirm_add": {
"const": true
},
"cvc": {
"pattern": "^[0-9]{3,4}$",
"type": "string",
"x-sensitive": true
},
"expiry_month": {
"maximum": 12,
"minimum": 1,
"type": "integer",
"x-sensitive": true
},
"expiry_year": {
"maximum": 2100,
"minimum": 2026,
"type": "integer",
"x-sensitive": true
}
},
"required": [
"card_number",
"cvc",
"expiry_month",
"expiry_year",
"cardholder",
"billing_address",
"confirm_add"
],
"title": "Secret card input for Starbucks UK payment method add",
"type": "object"
}