Download OpenAPI specification:Download
API Support: accounts@resolvepay.com
Legacy (v2) API documentation: https://app.resolvepay.com/docs/api/v2
The Resolve API is organized around REST principles. It uses predictable resource-oriented URLs, standard HTTP verbs and response codes, and accepts and returns JSON-encoded request and response bodies.
Resolve offers both server-side and client-side integrations. This documentation refers to the server-side API. Refer to our e-commerce plugin guides for details on client-side checkout solutions.
There is a sandbox API available for testing, which leverages the same data store as your sandbox dashboard. Testing on sandbox won't affect your live data or create money movements.
Environment | Base URL |
Production |
https://app.resolvepay.com/api/
|
Sandbox |
https://app-sandbox.resolvepay.com/api/
|
Before using the API, reach out and get your Resolve account created. This account enables access to the credentials that are necessary for API access.
Resolve uses HTTP basic authentication where the username refers to your merchant ID, and the password refers to your secret API key.
When backwards-incompatible changes are released, a new, dated version is released. The current version is 2021-05-01. You can upgrade the version of the api that your account uses within your merchant settings.
Legacy (v2) API documentation may be found here.
All top-level API resources have support for bulk fetches via "list" API methods. For instance, you can list customers, list invoices.
These list API methods share a common structure, taking at least two parameters: limit
and page
.
count
- represents total amount of records, satisfying the request query.page
- a multiplier value, which gets applied to the limit
and shows what position records are being returned from.
For example, if limit = 20
and page = 5
, then maximun 20
records will be returned from position 5 * 20 = 100
.limit
- maximun amount of records, which can be returned.results
- array of records being returned. If no records satisfy request condition, the array will be empty.The invoice represents the business transaction between you and your customer. In Resolve, an invoice must be tied to a customer and an advance can be taken on the invoice.
For an advance to be taken on the invoice, a PDF of the invoice must be uploaded and the associated customer must be approved and have available credit for the amount of the invoice.
Return a list of invoices.
An object with an array of results containing up to the limit. If no invoices are found, the results array will be empty.
Bad request error
Unauthorized error
Rate limit error
{- "count": 1,
- "limit": 25,
- "page": 1,
- "results": [
- {
- "id": "PMMlaE5wbg0",
- "source": "MERCHANT_USER",
- "customer_id": "string",
- "order_number": "5055",
- "number": "Inv # 123",
- "po_number": "PO-555",
- "notes": "Example of additional notes for Customer.",
- "line_items": [ ],
- "resolve_invoice_status": "completed",
- "fully_paid_at": "2020-01-01T00:00:00.730Z",
- "advanced": false,
- "due_at": "2020-02-01T00:00:00.750Z",
- "original_due_at": "2020-02-01T00:00:00.750Z",
- "invoiced_at": "2020-01-01T00:00:00.750Z",
- "advance_requested": "false",
- "terms": "due_upon_receipt",
- "amount_payout_due": 4000,
- "amount_payout_paid": 2000,
- "amount_payout_pending": 1000,
- "amount_payout_refunded": 500,
- "amount_payout_balance": 500,
- "payout_fully_paid": false,
- "payout_fully_paid_at": "2020-01-02T00:00:00.730Z",
- "amount_balance": 2000,
- "amount_due": 4000,
- "amount_refunded": 0,
- "amount_pending": 1000,
- "amount_paid": 1000,
- "amount_advance": 4000,
- "amount_advance_fee": 10.75,
- "amount_advance_fee_refund": 10.75,
- "advance_rate": 0.75,
- "advanced_at": "2020-01-02T00:00:00.730Z",
- "amount_customer_fee_total": 500,
- "amount_customer_fee_waived": 120,
- "amount_customer_fee_paid": 300,
- "amount_customer_fee_balance": 80,
- "created_at": "2020-01-02T00:00:00.730Z",
- "updated_at": "2020-01-02T00:00:00.730Z",
- "archived": false
}
]
}
Create a new advanced or non-advanced invoice with the desired terms.
Invoice to add to the system.
An object representing a created invoice.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "terms": "due_upon_receipt",
- "number": "R334-097",
- "order_number": "09785",
- "po_number": "PO-09785",
- "notes": "Example of additional notes for Customer.",
- "customer_id": "X50sgfRd",
- "advance_requested": "false",
- "amount": 2000
}
{- "id": "PMMlaE5wbg0",
- "source": "MERCHANT_USER",
- "customer_id": "string",
- "order_number": "5055",
- "number": "Inv # 123",
- "po_number": "PO-555",
- "notes": "Example of additional notes for Customer.",
- "line_items": [ ],
- "resolve_invoice_status": "completed",
- "fully_paid_at": "2020-01-01T00:00:00.730Z",
- "advanced": false,
- "due_at": "2020-02-01T00:00:00.750Z",
- "original_due_at": "2020-02-01T00:00:00.750Z",
- "invoiced_at": "2020-01-01T00:00:00.750Z",
- "advance_requested": "false",
- "terms": "due_upon_receipt",
- "amount_payout_due": 4000,
- "amount_payout_paid": 2000,
- "amount_payout_pending": 1000,
- "amount_payout_refunded": 500,
- "amount_payout_balance": 500,
- "payout_fully_paid": false,
- "payout_fully_paid_at": "2020-01-02T00:00:00.730Z",
- "amount_balance": 2000,
- "amount_due": 4000,
- "amount_refunded": 0,
- "amount_pending": 1000,
- "amount_paid": 1000,
- "amount_advance": 4000,
- "amount_advance_fee": 10.75,
- "amount_advance_fee_refund": 10.75,
- "advance_rate": 0.75,
- "advanced_at": "2020-01-02T00:00:00.730Z",
- "amount_customer_fee_total": 500,
- "amount_customer_fee_waived": 120,
- "amount_customer_fee_paid": 300,
- "amount_customer_fee_balance": 80,
- "created_at": "2020-01-02T00:00:00.730Z",
- "updated_at": "2020-01-02T00:00:00.730Z",
- "archived": false
}
Retrieve an existing invoice by its ID.
An object representing a created invoice.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "id": "PMMlaE5wbg0",
- "source": "MERCHANT_USER",
- "customer_id": "string",
- "order_number": "5055",
- "number": "Inv # 123",
- "po_number": "PO-555",
- "notes": "Example of additional notes for Customer.",
- "line_items": [ ],
- "resolve_invoice_status": "completed",
- "fully_paid_at": "2020-01-01T00:00:00.730Z",
- "advanced": false,
- "due_at": "2020-02-01T00:00:00.750Z",
- "original_due_at": "2020-02-01T00:00:00.750Z",
- "invoiced_at": "2020-01-01T00:00:00.750Z",
- "advance_requested": "false",
- "terms": "due_upon_receipt",
- "amount_payout_due": 4000,
- "amount_payout_paid": 2000,
- "amount_payout_pending": 1000,
- "amount_payout_refunded": 500,
- "amount_payout_balance": 500,
- "payout_fully_paid": false,
- "payout_fully_paid_at": "2020-01-02T00:00:00.730Z",
- "amount_balance": 2000,
- "amount_due": 4000,
- "amount_refunded": 0,
- "amount_pending": 1000,
- "amount_paid": 1000,
- "amount_advance": 4000,
- "amount_advance_fee": 10.75,
- "amount_advance_fee_refund": 10.75,
- "advance_rate": 0.75,
- "advanced_at": "2020-01-02T00:00:00.730Z",
- "amount_customer_fee_total": 500,
- "amount_customer_fee_waived": 120,
- "amount_customer_fee_paid": 300,
- "amount_customer_fee_balance": 80,
- "created_at": "2020-01-02T00:00:00.730Z",
- "updated_at": "2020-01-02T00:00:00.730Z",
- "archived": false
}
Update an invoice.
Fields to update an invoice with. Please note, allowed fields depend on whether or not the invoice has been sent.
An object representing a created invoice.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "terms": "due_upon_receipt",
- "number": "R334-097",
- "order_number": "09785",
- "po_number": "PO-09785",
- "notes": "Example of additional notes for Customer.",
- "customer_id": "X50sgfRd",
- "advance_requested": "false",
- "amount": 2000
}
{- "id": "PMMlaE5wbg0",
- "source": "MERCHANT_USER",
- "customer_id": "string",
- "order_number": "5055",
- "number": "Inv # 123",
- "po_number": "PO-555",
- "notes": "Example of additional notes for Customer.",
- "line_items": [ ],
- "resolve_invoice_status": "completed",
- "fully_paid_at": "2020-01-01T00:00:00.730Z",
- "advanced": false,
- "due_at": "2020-02-01T00:00:00.750Z",
- "original_due_at": "2020-02-01T00:00:00.750Z",
- "invoiced_at": "2020-01-01T00:00:00.750Z",
- "advance_requested": "false",
- "terms": "due_upon_receipt",
- "amount_payout_due": 4000,
- "amount_payout_paid": 2000,
- "amount_payout_pending": 1000,
- "amount_payout_refunded": 500,
- "amount_payout_balance": 500,
- "payout_fully_paid": false,
- "payout_fully_paid_at": "2020-01-02T00:00:00.730Z",
- "amount_balance": 2000,
- "amount_due": 4000,
- "amount_refunded": 0,
- "amount_pending": 1000,
- "amount_paid": 1000,
- "amount_advance": 4000,
- "amount_advance_fee": 10.75,
- "amount_advance_fee_refund": 10.75,
- "advance_rate": 0.75,
- "advanced_at": "2020-01-02T00:00:00.730Z",
- "amount_customer_fee_total": 500,
- "amount_customer_fee_waived": 120,
- "amount_customer_fee_paid": 300,
- "amount_customer_fee_balance": 80,
- "created_at": "2020-01-02T00:00:00.730Z",
- "updated_at": "2020-01-02T00:00:00.730Z",
- "archived": false
}
A customer represents a company that you do business with. For larger companies, there may be several users with access to the customer account that can make purchases with their credit line. For smaller companies, a customer may represent a single individual. Retrieve a customer to get a summary of their total credit line and available credit balance.
Return a list of customers.
An object with an array of results containing up to the limit. If no customers are found, the results array will be empty.
Bad request error
Unauthorized error
Rate limit error
{- "count": 1,
- "limit": 25,
- "page": 1,
- "results": [
- {
- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
]
}
Create a customer
Customer to add to the system.
An object representing the customer.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "email": "user@example.com",
- "default_terms": "net7"
}
{- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
Retrieve an existing customer by its ID.
A successful response to this request will be the Customer entity.
If customer enrollment is required, we will return net_terms_status='pending_enrollment'
and a not null net_terms_enrollment_url
.
If customer enrollment is not required (customer applied through a direct application), we will return net_terms_status='enrolled'
.
An object representing the customer.
Unauthorized error
Not found error
Rate limit error
{- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
Update a customer
Fields to update a customer with.
An object representing the customer.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "email": "user@example.com",
- "default_terms": "net7"
}
{- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
An object representing the customer.
Bad request error
Unauthorized error
Not found error
Unprocessable entity error
Rate limit error
{- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
You may request a credit check on a customer who hasn't previously been credit checked.
A successful response to a credit check is the Customer entity: you'll be able to immediately see the date you requested
the credit check (credit_check_requested_at
) and credit_status
will be updated to pending
or,
in the case of an instant decision, approved
or declined
.
A hold
credit status represents when a customer's credit account is over 15 days overdue.
A deactivated
credit status represents when a customer's credit account has been deactivated.
When a customer's credit_status
is approved
- the customer's net_terms_status
represents the current state of a customer's enrollment in the approved net terms offer.
See #fetchCustomer for more details.
Note: the response to a POST /credit-check
request could take up to 30 seconds.
Except for instant decisions, a decision should be reflected on the Customer entity within 1 business day.
Request a credit check for a customer
An object representing the customer.
Bad request error
Unauthorized error
Not found error
Credit check already created for this customer
Rate limit error
{- "amount_requested": 50000,
- "business_description": "Put a description your customer's business here.",
- "has_purchase_history": true,
- "has_purchase_terms_history": false
}
{- "id": "PMMlaE5wbg0",
- "created_at": "2020-01-01T00:00:00.750Z",
- "updated_at": "2020-01-01T00:00:00.750Z",
- "source": "MERCHANT_USER",
- "business_address": "111 Main Street",
- "business_city": "San Francisco",
- "business_state": "CA",
- "business_zip": "94104",
- "business_country": "US",
- "business_age_range": "5-10",
- "business_ap_email": "ap@example.com",
- "business_ap_phone": "(202) 456-1414",
- "business_ap_phone_extension": "123",
- "business_name": "Example, Inc.",
- "business_trade_name": "Example Trading Company",
- "business_phone": "(202) 456-1414",
- "business_type": "corporation",
- "email": "user@example.com",
- "personal_name_first": "James",
- "personal_name_last": "Bond",
- "personal_phone": "(202) 456-1414",
- "amount_approved": 10000,
- "amount_authorized": 10000,
- "amount_available": 10000,
- "amount_balance": 2000,
- "amount_unapplied_payments": 1000,
- "default_terms": "net7",
- "advance_rate": 0.75,
- "credit_status": "approved",
- "net_terms_status": "enrolled",
- "net_terms_enrollment_url": "www.app.resolvepay.com/merchant-id/activate/123456",
- "net_terms_enrollment_expires_at": "2020-01-01T00:00:00.750Z",
- "credit_check_requested_at": "2020-01-01T00:00:00.750Z",
- "archived": false
}
An object with an array of Payouts up to the specified limit.
Bad request error
Unauthorized error
Rate limit error
{- "limit": 25,
- "page": 1,
- "results": [
- {
- "id": "PMMlaE5wbg0",
- "amount_gross": 120,
- "amount_fee": 20,
- "amount_net": 100,
- "status": "pending",
- "retry_payout_id": "PMMlaE5wbg0",
- "failed_at": "2022-09-06T03:08:37.508Z",
- "expected_by": "2022-09-06T03:08:37.508Z",
- "transactions_starting_at": "string",
- "transactions_ending_at": "string",
- "canceled_at": "2022-09-06T03:08:37.508Z",
- "created_at": "2022-09-06T03:08:37.508Z",
- "updated_at": "2022-09-06T03:08:37.508Z"
}
]
}
An object representing the created Payout.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "id": "PMMlaE5wbg0",
- "amount_gross": 120,
- "amount_fee": 20,
- "amount_net": 100,
- "status": "pending",
- "retry_payout_id": "PMMlaE5wbg0",
- "failed_at": "2022-09-06T03:08:37.508Z",
- "expected_by": "2022-09-06T03:08:37.508Z",
- "transactions_starting_at": "string",
- "transactions_ending_at": "string",
- "canceled_at": "2022-09-06T03:08:37.508Z",
- "created_at": "2022-09-06T03:08:37.508Z",
- "updated_at": "2022-09-06T03:08:37.508Z"
}
Payout Transactions are the individual transactions like customer payments, Resolve advances, forwarded payments, etc. that are rolled into a Payout. Each Payout is the sum of one or more transactions. Note that certain fields are only relevant to certain transaction types - e.g.: a Payout Transaction of type monthly_fee
will have both customer_id
and invoice_id
set to null
.
An object with an array of results containing up to the limit. If no payout transactions are found, the results array will be empty.
Bad request error
Unauthorized error
Rate limit error
{- "limit": 25,
- "page": 1,
- "results": [
- {
- "id": "AOncfxMnm",
- "payout_id": "gQxGLAowY",
- "type": "advance",
- "customer_id": "voArW2nSs",
- "customer_name": "Test name",
- "invoice_id": "C2vBqxfZ4",
- "invoice_number": "R334-097R",
- "order_id": "u5WRraCYY",
- "po_number": "PO-09785",
- "amount_gross": 100,
- "amount_fee": 3,
- "amount_net": 97,
- "created_at": "2022-09-06T03:08:37.508Z",
- "updated_at": "2022-09-06T03:08:37.508Z"
}
]
}
An object representing the created Payout Transaction.
Bad request error
Unauthorized error
Not found error
Rate limit error
{- "id": "AOncfxMnm",
- "payout_id": "gQxGLAowY",
- "type": "advance",
- "customer_id": "voArW2nSs",
- "customer_name": "Test name",
- "invoice_id": "C2vBqxfZ4",
- "invoice_number": "R334-097R",
- "order_id": "u5WRraCYY",
- "po_number": "PO-09785",
- "amount_gross": 100,
- "amount_fee": 3,
- "amount_net": 97,
- "created_at": "2022-09-06T03:08:37.508Z",
- "updated_at": "2022-09-06T03:08:37.508Z"
}