Create fee model [beta]

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_id that's already in use creates nothing: the endpoint returns the response of the first creation with 200, 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 504 and the code EAPX0030. Retry with the same body after the Retry-After delay: 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 60

Fee model ID provided by the client, unique per organization. It cannot be changed after the fee model is created.

fees
array of objects
required

List of the fee model's fees

fees*
string
required
length between 1 and 255

Fee model description

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json