Server to Server Management APIs
Payment

Payments

The B2B Edition Payments API provides endpoints for enabling, disabling, and updating active payment methods on a Company-to-Company basis. Every payment method you have enabled on the store-level can be enabled or disabled as needed on the Company level. In addition, the specific behaviors for Company credit and payment on terms can be adjusted with this API.

NOTE
The Company credit and payment on terms features must be enabled in order to use their respective API paths. Using either path with the corresponding store-level feature disabled will cause errors or unexpected behavior. Refer to each endpoint for details.

For information on managing the payment methods available to the B2B Edition Payments API, refer to Payments (Help Center) (opens in a new tab), as this is not currently manageable via API. To learn more about Company credit and payment on terms, see B2B Edition Settings (opens in a new tab) and Companies (opens in a new tab).

Retrieving Payment Method Information for Companies

The B2B Edition Payments API has three endpoints for returning the payment methods available to Company accounts, each with its own context and use cases.

EndpointDescriptionUse Cases
Get Payment MethodsReturns a list of all payment methods available on the store.This endpoint allows you to confirm which payment methods and provides the payment's identifier for future requests.
Get Company Payment MethodsReturns the list of payment methods for a specific Company account.Use this endpoint to identify payment methods that are available for a particular Company, but not currently enabled.
Get All Active Payment MethodsGet all currently enabled payment methods across Companies.This allows you to identify enabled payment methods for all Company accounts in a store. Use the companyid parameter to identify enabled payment methods on a particular Company account more efficiently than the Get Company Payment Methods endpoint.

Get Payment Methods

Loading...

Get Company Payment Methods

Loading...

Update Company Payment Methods

Loading...

Get All Active Payment Methods

Loading...

Get Company Credit Status

Loading...

Update Company Credit Status

Loading...

Get Company-Level Payment Terms

Loading...

Update Company-Level Payment Terms

Loading...

See something you can improve? Edit this file on GitHub

Did you find what you were looking for?