{ "operationId": "payment-tokens.create", "method": "POST", "path": "/v3/vault/payment-tokens", "summary": "Paypal Create payment token for a given payment source", "requestExamples": [ { "contentType": "application/json", "name": "payment_token_request", "example": { "payment_source": { "token": { "id": "5C991763VB2781612", "type": "BILLING_AGREEMENT" } } } } ], "responseExamples": [ { "status": "200", "contentType": "application/json", "name": "payment_token_response", "example": { "id": "8kk8451t", "customer": { "id": "customer_4029352050" }, "payment_source": { "card": { "last_digits": "1111", "expiry": "2027-02", "brand": "VISA", "name": "John Doe", "billing_address": { "address_line_1": "2211 N First Street", "address_line_2": "17.3.160", "admin_area_2": "San Jose", "admin_area_1": "CA", "postal_code": "95131", "country_code": "US" } } }, "links": [ { "rel": "self", "href": "https://api-m.paypal.com/v3/vault/payment-tokens/8kk8451t", "method": "GET", "encType": "application/json" }, { "rel": "delete", "href": "https://api-m.paypal.com/v3/vault/payment-tokens/8kk8451t", "method": "DELETE", "encType": "application/json" } ] } }, { "status": "201", "contentType": "application/json", "name": "payment_token_response", "example": { "id": "8kk8451t", "customer": { "id": "customer_4029352050" }, "payment_source": { "card": { "last_digits": "1111", "expiry": "2027-02", "brand": "VISA", "name": "John Doe", "billing_address": { "address_line_1": "2211 N First Street", "address_line_2": "17.3.160", "admin_area_2": "San Jose", "admin_area_1": "CA", "postal_code": "95131", "country_code": "US" } } }, "links": [ { "rel": "self", "href": "https://api-m.paypal.com/v3/vault/payment-tokens/8kk8451t", "method": "GET", "encType": "application/json" }, { "rel": "delete", "href": "https://api-m.paypal.com/v3/vault/payment-tokens/8kk8451t", "method": "DELETE", "encType": "application/json" } ] } } ] }