Skip to main content

Forward Payments API (v1.3.0)

Download OpenAPI specification:Download

Welcome to the Forward API documentation!

Useful links: Homepage

Introduction

This is the reference documentation and schemas for the Forward Payments Core API API. For tutorials and other documentation please refer to the documentation.

Authentication

Forward uses API Keys to manage access to the API. You can pass the API key in the x-api-key header to the request. Talk you your sales rep about acquiring these API keys. Authorization is done via headers. You should pass the api key as the value to the x-api-key header. For example, x-api-key: ${API_KEY}. For more information on authentication, please refer to the authentication token docs. Please note that you will be given 2 API keys, one public key and one private key. Use the private key for all server to server communication. The public key is used for interfacing wih the Forward JS SDK.

Idempotency

Forward provides support for idempotency, a feature that allows requests to be safely retried without the risk of duplicate operations. This becomes particularly useful when an API call is interrupted during transmission, resulting in the absence of a response.

To execute an idempotent request, include the idempotency key in the x-idempotency-key header of the request. This key, which should be a unique value of at least 10 characters, is generated by the client. The method of creating this key is up to you, but we recommend using UUID v4 or any other string that has sufficient entropy to prevent overlaps.

Forward's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result for a period of up to 1 hour.

Idempotency is only supported for POST and PUT requests.

Checkout Sessions

Fetch list of checkout sessions for a given account

query Parameters
ending_before
string

The id of the entity, use to sort in reverse order

starting_after
string

The id of the entity

limit
number
Default: 10

Max value is 50

header Parameters
x-account-id
required
string

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Create a new checkout session

header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
cancel_url
required
string
success_url
required
string
customer_email
required
string
reference_id
string
object
payment_method_types
Array of strings
Items Enum: "card" "bank"
required
object (PaymentIntentCreateRequestDTO)
subtotal
required
integer >= 0
discount_amount
required
integer >= 0

Responses

Request samples

Content type
application/json
{
  • "cancel_url": "string",
  • "success_url": "string",
  • "customer_email": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "payment_method_types": [
    ],
  • "payment_intent_data": {
    },
  • "subtotal": 0,
  • "discount_amount": 0
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "checkout_session",
  • "url": "string",
  • "cancel_url": "string",
  • "success_url": "string",
  • "customer_email": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "payment_method_types": [
    ],
  • "payment_intent_data": {
    },
  • "payment_intent_id": "string",
  • "subtotal": 0,
  • "discount_amount": 0,
  • "status": "open",
  • "account_id": "string",
  • "partner_id": "string",
  • "business_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Fetch a specific checkout session

path Parameters
id
required
string
header Parameters
x-account-id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "checkout_session",
  • "url": "string",
  • "cancel_url": "string",
  • "success_url": "string",
  • "customer_email": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "payment_method_types": [
    ],
  • "payment_intent_data": {
    },
  • "payment_intent_id": "string",
  • "subtotal": 0,
  • "discount_amount": 0,
  • "status": "open",
  • "account_id": "string",
  • "partner_id": "string",
  • "business_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Fetch list of checkout session details

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "checkout_session": {
    },
  • "branding": {
    }
}

Complete a checkout session

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "checkout_session",
  • "url": "string",
  • "cancel_url": "string",
  • "success_url": "string",
  • "customer_email": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "payment_method_types": [
    ],
  • "payment_intent_data": {
    },
  • "payment_intent_id": "string",
  • "subtotal": 0,
  • "discount_amount": 0,
  • "status": "open",
  • "account_id": "string",
  • "partner_id": "string",
  • "business_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Expire a check session

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "checkout_session",
  • "url": "string",
  • "cancel_url": "string",
  • "success_url": "string",
  • "customer_email": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "payment_method_types": [
    ],
  • "payment_intent_data": {
    },
  • "payment_intent_id": "string",
  • "subtotal": 0,
  • "discount_amount": 0,
  • "status": "open",
  • "account_id": "string",
  • "partner_id": "string",
  • "business_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "expires_at": "2019-08-24T14:15:22Z"
}

Create a checkout session payment

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
reference_id
string
object
description
string
object
cvv2
string
payment_method_id
required
string

Responses

Request samples

Content type
application/json
{
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string",
  • "order_details": {
    },
  • "cvv2": "string",
  • "payment_method_id": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "payment",
  • "status": "pending",
  • "billing_details": {
    },
  • "amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "cvv": "M",
  • "avs": "A",
  • "address_line1_check": "pass",
  • "address_postal_code_check": "pass",
  • "cvv_check": "pass",
  • "signature": {
    },
  • "emv_tag_data": "string",
  • "entry_mode": "keyed",
  • "reversed": true,
  • "reversal_id": "string",
  • "disputed": true,
  • "dispute_id": "string",
  • "order_details": {
    },
  • "payment_intent_id": "string",
  • "payment_method_id": "string",
  • "payment_method": {
    },
  • "auth_code": "string",
  • "auth_response_text": "string",
  • "external": true,
  • "card_present": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "account_id": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string",
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Payment Intents

Create a payment intent

header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
amount
required
integer >= 0
merchant_amount
integer >= 0
Array of objects
object
capture
boolean
currency
string
Value: "USD"
reference_id
string
object
description
string
payment_method_types
Array of strings
Items Enum: "card" "bank"

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "merchant_amount": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string",
  • "payment_method_types": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Fetch a list of payment intents for an account

query Parameters
ending_before
string

The id of the entity, use to sort in reverse order

starting_after
string

The id of the entity

limit
number
Default: 10

Max value is 50

header Parameters
x-account-id
string
x-business-id
string

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Search for payment intents

header Parameters
x-account-id
string
x-business-id
string
Request Body schema: application/json
reference_id
string
status
string
Enum: "created" "pending" "uncaptured" "captured" "cancelled" "failed"
settlement_status
string
Enum: "settled" "unsettled"
payment_status
string
Enum: "pending" "uncaptured" "captured" "cancelled" "voided" "failed"
has_refund
boolean
start_date
string <date-time>
end_date
string <date-time>
amount_min
integer
amount_max
integer
string or string or string or string or string or string or string
string or string
Default: "desc"
limit
integer
page
integer

Responses

Request samples

Content type
application/json
{
  • "reference_id": "string",
  • "status": "created",
  • "settlement_status": "settled",
  • "payment_status": "pending",
  • "has_refund": true,
  • "start_date": "2019-08-24T14:15:22Z",
  • "end_date": "2019-08-24T14:15:22Z",
  • "amount_min": 0,
  • "amount_max": 0,
  • "sort_column": "amount",
  • "sort_direction": "desc",
  • "limit": 0,
  • "page": 0
}

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Fetch a payment intent for an account

path Parameters
id
required
string
header Parameters
x-account-id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Patch a payment intent

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
amount
integer >= 0
merchant_amount
integer >= 0
Array of objects
object
capture
boolean
payment_method_types
Array of strings
Items Enum: "card" "bank"
reference_id
string
object
description
string

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "merchant_amount": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Cancel a payment intent

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
cancellation_reason
string
Enum: "duplicate" "fraudulent" "requested_by_customer" "abandoned"

Responses

Request samples

Content type
application/json
{
  • "cancellation_reason": "duplicate"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Capture a payment intent

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
amount
integer >= 0
Array of objects

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "payment_splits": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Fetch list of payments for a payment intent

path Parameters
id
required
string
query Parameters
ending_before
string

The id of the entity, use to sort in reverse order

starting_after
string

The id of the entity

limit
number
Default: 10

Max value is 50

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Create a payment

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
reference_id
string
object
description
string
object
cvv2
string
payment_method_id
required
string

Responses

Request samples

Content type
application/json
{
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string",
  • "order_details": {
    },
  • "cvv2": "string",
  • "payment_method_id": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "payment",
  • "status": "pending",
  • "billing_details": {
    },
  • "amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "cvv": "M",
  • "avs": "A",
  • "address_line1_check": "pass",
  • "address_postal_code_check": "pass",
  • "cvv_check": "pass",
  • "signature": {
    },
  • "emv_tag_data": "string",
  • "entry_mode": "keyed",
  • "reversed": true,
  • "reversal_id": "string",
  • "disputed": true,
  • "dispute_id": "string",
  • "order_details": {
    },
  • "payment_intent_id": "string",
  • "payment_method_id": "string",
  • "payment_method": {
    },
  • "auth_code": "string",
  • "auth_response_text": "string",
  • "external": true,
  • "card_present": true,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "account_id": "string",
  • "reference_id": "string",
  • "user_fields": {
    },
  • "description": "string",
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Create a refund

path Parameters
id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
amount
integer >= 0

Responses

Request samples

Content type
application/json
{
  • "amount": 0
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "refund",
  • "status": "pending",
  • "external": true,
  • "amount": 0,
  • "account_id": "string",
  • "payment_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Refunds

Fetch a refund by id

path Parameters
id
required
string
header Parameters
x-account-id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "refund",
  • "status": "pending",
  • "external": true,
  • "amount": 0,
  • "account_id": "string",
  • "payment_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Payment Methods

Fetch payment method

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "payment_method",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "payment_method_type": "bank",
  • "source_type": "cardpointe",
  • "billing_details": {
    },
  • "single_use_token": true,
  • "signature": "string",
  • "bank": {
    }
}

Update payment method

path Parameters
id
required
string
Request Body schema: application/json
required
object
object
email
string
name
string
phone
string

Responses

Request samples

Content type
application/json
{
  • "billing_details": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "payment_method",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "payment_method_type": "bank",
  • "source_type": "cardpointe",
  • "billing_details": {
    },
  • "single_use_token": true,
  • "signature": "string",
  • "bank": {
    }
}

External Payments

Create Payment Intent

header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
required
object
required
object (ExternalPaymentMethodCreateRequestDTO)
required
object
card_present
boolean

Responses

Request samples

Content type
application/json
{
  • "payment_intent": {
    },
  • "payment_method": {
    },
  • "gateway_response": {
    },
  • "card_present": true
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Cancel Payment Intent

path Parameters
payment_intent_id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
object
cancellation_reason
string
Enum: "duplicate" "fraudulent" "requested_by_customer" "abandoned"

Responses

Request samples

Content type
application/json
{
  • "gateway_void_response": {
    },
  • "cancellation_reason": "duplicate"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

Capture External Payment Intent

path Parameters
payment_intent_id
required
string
header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
amount
integer
required
object

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "gateway_capture_response": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "client_secret": "string",
  • "entity": "payment_intent",
  • "status": "created",
  • "amount": 0,
  • "merchant_amount": 0,
  • "amount_authorized": 0,
  • "amount_captured": 0,
  • "amount_refunded": 0,
  • "amount_voided": 0,
  • "amount_disputed": 0,
  • "amount_reversed": 0,
  • "payment_splits": [
    ],
  • "order_details": {
    },
  • "capture": true,
  • "currency": "USD",
  • "latest_payment": {
    },
  • "disputed": true,
  • "dispute_id": "string",
  • "reversed": true,
  • "reversal_id": "string",
  • "external": true,
  • "partner_id": "string",
  • "business_id": "string",
  • "account_id": "string",
  • "payment_method_types": [
    ],
  • "reference_id": "string",
  • "user_fields": {
    },
  • "cancellation_reason": "string",
  • "description": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "cancelled_at": { },
  • "captured_at": { },
  • "settlement_status": "settled",
  • "settled_at": { }
}

External Refunds

Create Refund

header Parameters
x-account-id
required
string
x-idempotency-key
string
Request Body schema: application/json
payment_intent_id
required
string
object (RefundRequestDTO)
required
object

Responses

Request samples

Content type
application/json
{
  • "payment_intent_id": "string",
  • "refund_request": {
    },
  • "gateway_response": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "refund",
  • "status": "pending",
  • "external": true,
  • "amount": 0,
  • "account_id": "string",
  • "payment_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Disputes

Fetch list of disputes matching query

query Parameters
starting_after
string
ending_before
string
string or string or string or string or string or string or string
limit
number <= 50
Default: 10

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Fetch dispute by id

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "dispute",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "account_id": "string",
  • "business_id": "string",
  • "status": "new",
  • "payment_id": "string",
  • "payment_intent_id": "string",
  • "amount": 0,
  • "notes": [
    ],
  • "attachments": [
    ],
  • "dispute_date": "2019-08-24",
  • "response_due_date": "2019-08-24",
  • "closed_date": "2019-08-24",
  • "reason_disputed_code": 0,
  • "reason_disputed": "string",
  • "dispute_response": "string",
  • "reference_meta": {
    },
  • "settlement_status": "settled",
  • "settled_at": "string"
}

Balances

Fetch ledger account balances

Responses

Response samples

Content type
application/json
{
  • "currency": "USD",
  • "pending": 0,
  • "available": 0
}

Transactions

Fetch a list of transactions

query Parameters
ending_before
string
starting_after
string
limit
number
payout_id
string

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Fetch a transaction

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "transaction",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "ledger_account_id": "string",
  • "payout_id": "string",
  • "bank_transfer_id": "string",
  • "source_type": "adjustment",
  • "source_id": "string",
  • "source_account_id": "string",
  • "amount": 0,
  • "settlement_id": "string",
  • "settlement_status": "settled",
  • "settled_at": "string",
  • "description": "string"
}

Search a list of transactions

Request Body schema: application/json
source_type
string
Enum: "adjustment" "checkout_session" "dispute" "fee" "fee_refund" "funding" "payment" "payment_intent" "payment_method" "payment_refund" "payout" "refund" "refund_failure" "transfer" "transfer_refund" "reversal"
settlement_status
string
Enum: "settled" "unsettled"
start_date
string <date-time>
end_date
string <date-time>
string or string or string
Default: "updated_at"
string or string
Default: "desc"
amount_min
integer
amount_max
integer
limit
integer <= 50
Default: 10
page
integer >= 1
Default: 1

Responses

Request samples

Content type
application/json
{
  • "source_type": "adjustment",
  • "settlement_status": "settled",
  • "start_date": "2019-08-24T14:15:22Z",
  • "end_date": "2019-08-24T14:15:22Z",
  • "sort_column": "updated_at",
  • "sort_direction": "desc",
  • "amount_min": 0,
  • "amount_max": 0,
  • "limit": 10,
  • "page": 1
}

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Download list of transactions

Request Body schema: application/json
source_type
string
Enum: "adjustment" "checkout_session" "dispute" "fee" "fee_refund" "funding" "payment" "payment_intent" "payment_method" "payment_refund" "payout" "refund" "refund_failure" "transfer" "transfer_refund" "reversal"
settlement_status
string
Enum: "settled" "unsettled"
start_date
string <date-time>
end_date
string <date-time>
string or string or string
Default: "updated_at"
string or string
Default: "desc"
amount_min
integer
amount_max
integer

Responses

Request samples

Content type
application/json
{
  • "source_type": "adjustment",
  • "settlement_status": "settled",
  • "start_date": "2019-08-24T14:15:22Z",
  • "end_date": "2019-08-24T14:15:22Z",
  • "sort_column": "updated_at",
  • "sort_direction": "desc",
  • "amount_min": 0,
  • "amount_max": 0
}

Response samples

Content type
application/json
{ }

Payouts

Fetch a list of payouts

query Parameters
ending_before
string

The id of the entity, use to sort in reverse order

starting_after
string

The id of the entity

limit
number
Default: 10

Max value is 50

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Fetch a payout by id

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "entity": "payout",
  • "status": "created",
  • "payout_number": 0,
  • "transaction_count": 0,
  • "transaction_summary": [
    ],
  • "amount": 0,
  • "net_amount": 0,
  • "fee_amount": 0,
  • "batch_fee": 0,
  • "reject_fee": 0,
  • "latest_payment_data": {
    },
  • "payment_data": [
    ],
  • "payment_attempt_count": 0,
  • "payment_reject_count": 0,
  • "owner_type": "account",
  • "owner_id": "string",
  • "business_id": "string",
  • "settlement_status": "settled",
  • "settled_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "completed_at": "2019-08-24T14:15:22Z",
  • "returned_at": "2019-08-24T14:15:22Z"
}

Fetch a list of payouts for a business

query Parameters
ending_before
string

The id of the entity, use to sort in reverse order

starting_after
string

The id of the entity

limit
number
Default: 10

Max value is 50

header Parameters
x-business-id
required
string

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Accounts

Fetch Partner Processing Plan

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "plan_type": "FLAT_RATE",
  • "effective_date": "string",
  • "accepted_cards": [
    ],
  • "auth_fee": {
    },
  • "fees": {
    },
  • "fees_paid_by_partner": {
    },
  • "partner_pays_chargeback_amount": true,
  • "comment": "string",
  • "interchange_cost": "GROSS",
  • "bank_processing_plan_settings": {
    }
}