openapi: 3.0.0 info: title: BigCommerce Abandoned Cart Emails Processing API version: 3.0.0 termsOfService: https://www.bigcommerce.com/terms description: Abandoned Cart Emails V3 API managing Handlebars-based emails. contact: name: BigCommerce url: https://www.bigcommerce.com email: support@bigcommerce.com servers: - url: https://api.bigcommerce.com/stores/{store_hash}/v3 variables: store_hash: default: store_hash description: Permanent ID of the BigCommerce store. description: BigCommerce API Gateway security: - X-Auth-Token: [] tags: - name: Processing paths: /payments: post: summary: BigCommerce Process Payments tags: - Processing operationId: PaymentsPost description: Process payments for an order. See [Payment Processing](/docs/store-operations/payments) for more information. parameters: - $ref: '#/components/parameters/AcceptPaymentResponse' - $ref: '#/components/parameters/ContentType' requestBody: content: application/json: schema: title: Payment Request type: object properties: payment: title: Payment type: object required: - instrument - payment_method_id properties: instrument: anyOf: - $ref: '#/components/schemas/Card' - $ref: '#/components/schemas/StoredCard' - $ref: '#/components/schemas/StoredPayPalAccount' - $ref: '#/components/schemas/GiftCertificate' - $ref: '#/components/schemas/StoreCredit' - $ref: '#/components/schemas/TokenizedCard' - $ref: '#/components/schemas/StoredBankAccount' payment_method_id: description: Identifier for payment method that will be used for this payment and `id` from the Get Accepted Payment Methods API type: string minLength: 1 save_instrument: type: boolean description: To use `save_instrument`, configure the payment gateway to accept stored cards. required: - payment examples: Card: value: payment: instrument: type: card cardholder_name: string number: string expiry_month: 1 expiry_year: 0 verification_value: stri issue_month: 1 issue_year: 0 issue_number: 0 payment_method_id: string Stored Card: value: payment: instrument: type: stored_card token: 8cdf7b6ea1b27119463bf9e5106639618cc77a9adc49f0069ca8b756cc15caee verification_value: '1142' payment_method_id: adyenv2.scheme save_instrument: true Stored PayPal Account: value: payment: instrument: type: stored_paypal_account token: 2c129313bcffe4501ec5fa2764c8c16320e38c7ba9e8cdf95583b541bb05ad91 payment_method_id: braintree.paypal Stored Bank Account: value: payment: instrument: type: stored_bank_account token: 2c129313bcffe4501ec5fa2764c8c16320e38c7ba9e8cdf95583b541bb05ad91 payment_method_id: braintree.ach Gift Certificate: value: payment: instrument: type: gift_certificate gift_certificate_code: ABC-DEF-GXX payment_method_id: bigcommerce.gift_certificate Store Credit: value: payment: instrument: type: store_credit payment_method_id: bigcommerce.store_credit Tokenized Card: value: payment: instrument: type: tokenized_card token: K7KW-M9GX-6PQ3 iin: 4111111 last_four_digits: 1111 expiration_month: 12 expiration_year: 2030 payment_method_id: bolt.card required: true x-examples: application/json: payment: instrument: {} payment_method_id: Lorem in amount: 81505146 currency_code: NYE Payment Access Token: "curl -X POST \\\n https://payments.bigcommerce.com/stores/{store_hash}/payments \\\n -H 'Accept: application/vnd.bc.v1+json' \\\n -H 'Authorization: PAT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NsdfasftIsIm5iZiI6MTU1MTM5MDU0MiwiaXNzIjoicGF5bWVudHMuYmlnY29tbWVyY2UuY29tIiwic3ViIjoianJhaDZnbW4iLCJqdGkiOiI3Nzg3ZmU1Zi01OWJmLTQ3ZWMtYTFmZC00ZDQ3ZTkwNjFlNWMiLCJpYXQiOjE1NTEzOTA1NDIsImRhdGEiOnsic3RvcmVfaWQiOjEwMjU2NDYsIm9yZGVyX2lkIjoyMTUsImFtb3VudCI6OTgwMCwiY3VycmVuY3kiOiJVU0QifX0.WbR90d8m4gn8wK7kPMDEoVq8B0hHC5Ul5H4Hpqq6Yvo' \\\n -H 'Content-Type: application/json' \\" Vaulted Card: payment: instrument: type: stored_card token: vaulted instrument token verification_value: '123' payment_method_id: stripe.card save_instrument: true Credit Card: "{\n \"payment\": {\n \"instrument\": {\n \"type\": \"card\",\n \"number\": \"4111111111111111\",\n \"cardholder_name\": \"BP\",\n \"expiry_month\": 12,\n \"expiry_year\": 2020,\n \"verification_value\": \"411\"\n },\n \"payment_method_id\": \"authorizenet.card\",\n \"save_instrument\": true\n }\n}" description: '' responses: '202': description: Payment has been successfully processed content: application/json: schema: title: Success Payment Response type: object properties: id: description: Identifier for this transaction type: string transaction_type: title: Transaction Type description: Transaction type for this payment example: authorization type: string enum: - authorization - purchase status: type: string title: Status description: Status to indicate a success response enum: - success - pending examples: response: value: id: 227d9e1e-94f8-408c-95a5-f97b30592eb7 transaction_type: authorization status: pending '400': description: Payment request has been rejected due to malformed request content: application/json: schema: title: Error Payment Response type: object properties: status: description: HTTP status code type: integer format: int32 title: description: Short summary describing the particular error type: string detail: description: Detailed summary describing the particular error type: string type: description: Reference that identifies the particular error type: string code: description: Code representing the particular error type: integer format: int32 errors: description: '' type: object additionalProperties: type: string required: - status - title - type '401': description: Valid authentication required content: application/json: schema: title: Error Payment Response type: object properties: status: description: HTTP status code type: integer format: int32 title: description: Short summary describing the particular error type: string detail: description: Detailed summary describing the particular error type: string type: description: Reference that identifies the particular error type: string code: description: Code representing the particular error type: integer format: int32 errors: description: '' type: object additionalProperties: type: string required: - status - title - type '422': description: Payment request has been rejected due to missing, invalid data or declined by payment provider content: application/json: schema: title: Error Payment Response type: object properties: status: description: HTTP status code type: integer format: int32 title: description: Short summary describing the particular error type: string detail: description: Detailed summary describing the particular error type: string type: description: Reference that identifies the particular error type: string code: description: Code representing the particular error type: integer format: int32 errors: description: '' type: object additionalProperties: type: string required: - status - title - type default: description: Internal server error content: application/json: schema: title: Error Payment Response type: object properties: status: description: HTTP status code type: integer format: int32 title: description: Short summary describing the particular error type: string detail: description: Detailed summary describing the particular error type: string type: description: Reference that identifies the particular error type: string code: description: Code representing the particular error type: integer format: int32 errors: description: '' type: object additionalProperties: type: string required: - status - title - type components: schemas: StoredPayPalAccount: title: StoredPayPalAccount type: object x-internal: false properties: type: type: string description: Type to classify this payment instrument (required) enum: - stored_paypal_account token: description: Identifier representing this stored PayPal account (required) type: string minLength: 64 maxLength: 64 x-examples: example-1: type: stored_paypal_account token: stringstringstringstringstringstringstringstringstringstringstri StoredBankAccount: title: StoredBankAccount type: object x-internal: false properties: type: type: string description: Type to classify this payment instrument (required) enum: - stored_bank_account token: description: Identifier representing this stored bank account (required) type: string minLength: 64 maxLength: 64 x-examples: example-1: type: stored_bank_account token: stringstringstringstringstringstringstringstringstringstringstri GiftCertificate: title: GiftCertificate type: object properties: type: type: string example: gift_certificate gift_certificate_code: type: string example: ABC-DEF-GXX x-examples: example-1: type: gift_certificate gift_certificate_code: ABC-DEF-GXX TokenizedCard: title: Tokenized Card type: object x-internal: false x-examples: example-1: type: tokenized_card token: K7KW-M9GX-6PQ3 iin: 4111111 last_four_digits: 1111 expiration_month: 12 expiration_year: 2030 properties: type: type: string description: Type to classify this payment instrument (required). enum: - tokenized_card token: description: Identifier representing the tokenized card (required). type: string minLength: 64 maxLength: 64 iin: type: string description: Issuer identification number. last_four_digits: type: string description: Last four numbers of this card. expiration_month: type: string description: Expiry month of this card. expiration_year: type: string description: Expiry year of this card. required: - type - token StoredCard: title: Stored Card type: object x-internal: false x-examples: example-1: type: stored_card token: stringstringstringstringstringstringstringstringstringstringstri verification_value: 1142 properties: type: description: Type to classify this payment instrument (required) example: stored_card type: string default: stored_card token: description: Identifier representing this stored card (required) type: string minLength: 64 maxLength: 64 verification_value: type: string description: Verification value of this card (CVV) minLength: 3 maxLength: 4 StoreCredit: title: StoreCredit type: object properties: type: type: string example: store_credit x-examples: example-1: type: store_credit Card: title: Card type: object x-examples: example-1: type: card cardholder_name: string number: string expiry_month: 1 expiry_year: 0 verification_value: stri issue_month: 1 issue_year: 0 issue_number: 0 x-internal: false properties: type: type: string default: card example: card description: Type to classify this payment instrument (required) cardholder_name: type: string minLength: 1 description: Cardholderʼs full name (required) number: type: string minLength: 1 description: Credit card number (required) expiry_month: type: integer format: int32 minimum: 1 maximum: 12 description: Expiry month of this card (required) expiry_year: type: integer format: int32 description: Expiry year of this card (required) verification_value: type: string minLength: 3 maxLength: 4 description: Verification value of this card (CVV) issue_month: type: integer description: Issue month of this card format: int32 minimum: 1 maximum: 12 issue_year: type: integer format: int32 description: Issue year of this card issue_number: type: integer format: int32 description: Issue number of this card parameters: ContentType: name: Content-Type in: header required: true description: The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body. schema: type: string default: application/json AcceptPaymentResponse: name: Accept in: header schema: type: string enum: - application/vnd.bc.v1+json default: application/vnd.bc.v1+json required: true description: This required value must be `application/vnd.bc.v1+json`. securitySchemes: X-Auth-Token: name: X-Auth-Token description: '### OAuth scopes | UI Name | Permission | Parameter | |:--|:--|:-| | Information & Settings | read-only | `store_v2_information_read_only`| | Information & Settings | modify | `store_v2_information` | ### Authentication header | Header | Argument | Description | |:-|:|:| | `X-Auth-Token` | `access_token` | For more about API accounts that generate `access_token`s, see our [Guide to API Accounts](/docs/start/authentication/api-accounts). | ### Further reading For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/docs/start/authentication#x-auth-token-header-example-requests). For more about BigCommerce OAuth scopes, see our [Guide to API Accounts](/docs/start/authentication/api-accounts#oauth-scopes). For a list of API status codes, see [API Status Codes](/docs/start/about/status-codes).' type: apiKey in: header