Skip to main content
POST
/
api
/
epo
/
pricing-config
Configure EPO Pricing
curl --request POST \
  --url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/epo/pricing-config \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "epoId": "EPO-123",
  "consignorId": "CGNR-456",
  "pricingRules": [
    {
      "serviceLevel": "EXPRESS",
      "basePricePerKg": 3.5,
      "minimumCharge": 50,
      "currency": "USD",
      "volumeDiscounts": [
        {
          "minWeightKg": 100,
          "maxWeightKg": 500,
          "discountPercent": 5
        }
      ],
      "surcharges": [
        {
          "type": "FUEL",
          "percentage": 12.5,
          "fixedAmount": 0.25
        }
      ]
    }
  ],
  "validFrom": "2025-01-01",
  "validTo": "2025-12-31",
  "autoRenew": true,
  "notes": "Special pricing agreement for premium customer"
}
'
{
  "configId": "CONF-789",
  "status": "ACTIVE",
  "createdAt": "2024-12-20T10:30:00Z",
  "createdBy": "[email protected]",
  "message": "Pricing configuration successfully created"
}

Reference Documentation

For more information on EPO pricing configuration, please refer to:

Authorizations

Authorization
string
header
required

Body

application/json
epoId
string
required
Example:

"EPO-123"

consignorId
string
required
Example:

"CGNR-456"

pricingRules
object[]
required
validFrom
string<date>
required
Example:

"2025-01-01"

validTo
string<date>
required
Example:

"2025-12-31"

autoRenew
boolean
Example:

true

notes
string
Example:

"Special pricing agreement for premium customer"

Response

201 - application/json

Pricing configuration successfully created

configId
string
Example:

"CONF-789"

status
string
Example:

"ACTIVE"

createdAt
string<date-time>
Example:

"2024-12-20T10:30:00Z"

createdBy
string<email>
message
string
Example:

"Pricing configuration successfully created"