Invoice
See example of enabling invoice payment method.
Apart from payment gateways, Emporix supports invoice (post-checkout) as a payment mode. This is common in B2B flows, for example net terms.
Invoice is configured through the Payment Gateway Service API.
Create the invoice payment mode
Create an invoice payment mode with POST /payment-gateway/{TENANT}/paymentmodes/config. For the full endpoint reference, see Payment modes configuration.
Example request
curl --location --request POST 'https://api.emporix.io/payment-gateway/{{TENANT}}/paymentmodes/config' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {EMPORIX_AUTH_TOKEN}' \
--data-raw '{
"code": "invoice",
"active": true,
"provider": "INVOICE",
"configuration": {}
}'Payload notes
code: Your storefront uses this as the method identifier (for exampleinvoice).provider: Must beINVOICE.configuration: Empty for invoice.
What to do next
After configuration, the mode shows up in GET /payment-gateway/{TENANT}/paymentmodes/frontend. Use that list to render available payment options in your storefront.
Last updated
Was this helpful?

