Backend API

Fields
idobjectId

Unique identifier for the payment.

accountAccount

Expandable link to the customer's account that made the payment.

account_cardAccount Card

Expandable link to the customer's credit card on file used to make the payment, if applicable.

account_card_idobjectId

ID of the customer's credit card on file used to make the payment, if applicable.

account_idobjectIdrequired

ID of the customer's account the payment was made for.

amazonobject

Amazon billing details used when method=amazon.

amountcurrencyrequired

Payment amount denominated in currency. Minimum of 0.01

amount_refundablecurrencyauto

Remaining amount that can be refunded.

amount_refundedcurrencyauto

Amount of the payment that has been refunded.

app_idobjectId

ID of the app that was used to process the payment, if applicable.

asyncbooleanauto

Indicates the payment is processed asynchronously. The payment will be updated in the future while success is undefined.

authorizedboolean

Indicates the payment was authorized before being captured.

capturedboolean

Indicates the payment has been captured.

cardobject

Credit card details used to make the payment, if applicable.

currencystring

Three-letter ISO currency code in uppercase. Defaults to the store's base currency.

currency_ratefloat

Currency percentage used in calculating the fixed amount.

date_async_updatedate

The date of the next time the payment status will be updated.

date_createddateauto

Date and time the payment was created.

date_updateddateauto

Date and time the payment was last updated.

errorobject

An object describing an error that occurred while interacting with the payment gateway, if applicable.

gatewaystringauto

ID of the payment gateway that was used to process the payment.

giftcardGift Card

Expandable link to gift card used to make the payment, if applicable.

giftcard_idobjectId

ID of the gift card used to make the payment, if applicable.

intentobject

The intent of the external payment provider. See the external payment provider’s documentation for how intent is implemented.

invoiceInvoice

Expandable link to the invoice the payment was applied to, if applicable.

invoice_idobjectId

ID of the invoice the payment was applied to, if applicable.

methodstringrequired

Method of payment. Can be card, account, amazon, paypal or any one of the manual methods defined in payment settings.

numberstringauto

Unique incremental payment number assigned automatically.

orderOrder

Expandable link to the order the payment was applied to, if applicable.

order_idobjectId

ID of the order the payment was applied to, if applicable.

paypalobject

PayPal billing details used when billing.method=paypal.

paypal_intentstring

Intent of the PayPal payment, either capture or authorize. Populated automatically when processing PayPal payments.

recurring_firstboolean

Indicates this is the first payment of a recurring subscription.

refundsarray of Refunds

Expandable list of refunds issued for the payment.

statusenumauto

Status of the payment. Can be pending, which is awaiting async processing, error, success or authorized.

Possible enum values:

pendingvoiderrorsuccessauthorized
subscriptionSubscription

Expandable link to the subscription the payment was applied to, if applicable.

subscription_idobjectIdauto

ID of the subscription the payment was applied to, if applicable.

successboolean

Indicates the payment was successful. When an error occurs with a payment gateway, this status will be false and error field will be populated.

testbooleanauto

Indicates the payment was made with a gateway in test mode.

transaction_idstringauto

External identifier returned by a payment gateway, if applicable.

The payment model
{
  "id": "60f199509111e70000000056",
  "account_id": "60f199509111e7000000005a",
  "amount": 50,
  "method": "card",
  "account_card_id": "60f199509111e70000000058",
  "amount_refundable": 30,
  "amount_refunded": 20,
  "async": false,
  "authorized": true,
  "captured": true,
  "card": {
    "token": "card_1Ds1K7E30PFlZWil6Q7bJ1PD",
    "test": true,
    "last4": "4242",
    "brand": "Visa",
    "address_check": "unchecked",
    "zip_check": "unchecked",
    "cvc_check": "unchecked",
    "exp_month": 1,
    "exp_year": 2029
  },
  "currency": "USD",
  "date_created": "2021-07-16T14:36:00.313Z",
  "date_updated": "2021-07-16T14:36:00.313Z",
  "error": null,
  "gateway": "stripe",
  "number": 2973512,
  "order_id": "60f199509111e70000000059",
  "status": "success",
  "success": true,
  "test": true,
  "transaction_id": "ch_1XNoXdEAeofUkt5SrbA6Swow"
}