post
https://sandbox.pismolabs.io/apex/v1/fee-models
Create a fee model with a client-defined external_fee_model_id. The external_fee_model_id must be unique within the organization and cannot be changed after the fee model is created. The Pismo platform generates the fee_model_id, and responses return both IDs.
Notes:
- Creating with an
external_fee_model_idthat's already in use creates nothing: the endpoint returns the response of the first creation with200, whatever the body. Use Get fee model to read the fee model's current state. - If the Pismo platform doesn't confirm the creation in time, the request fails with
504and the codeEAPX0030. Retry with the same body after theRetry-Afterdelay: the retry returns the fee model if Apex saved it, or creates it. If the Pismo platform created the fee model but didn't answer in time, the retry can create a second fee model, and the first one is left without an external ID.
A fee model is a collection of fees with custom calculations. For more information, see the Fee model guide. To apply a fee model, attach it to a program.
An accumulator fee model requires you call the Create accumulator configuration endpoint first to define how transaction totals are kept.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…