Create Market with Payment Method
A 2-step recipe with Commerce Layer. We can help you get access.
Recipe · 2 steps
Create Market with Payment Method
with Commerce Layer · Payment Collection & Dunning
Create a market and add a payment method to it.
- Create the market with its required relationships.
- Create a payment method scoped to the market and gateway.
What you'll need to have ready
- accessToken: Bearer access token for the Commerce Layer organization.
- name: The market name.
- merchantId: The id of the merchant for the market.
- priceListId: The id of the price list for the market.
- inventoryModelId: The id of the inventory model for the market.
- paymentGatewayId: The id of the payment gateway backing the payment method.
- paymentSourceType: The payment source type for the payment method (e.g. credit_cards).
- priceAmountCents: The price amount in cents for the payment method.
For your developer
Arazzo workflow commerce-layer:create-market-with-payment-method, 2 operations: POST/markets → POST/payment_methods. Specs on APIs.io.