Skip to main content
POST
Create a counter-offer against an order
Available to businesses approved for the marketplace. See Marketplace.

Authorizations

x-api-key
string
header
required

Static business API key issued from the dashboard. A business can provision multiple API keys, each scoped to a configurable set of permissions (e.g. read transactions, create deposits, etc). Permissions are chosen per key at creation time in the dashboard and may be revoked by deleting the key. Manage your keys and their permissions under Developer → API keys in the dashboard.

A request whose key does not carry the permission the target endpoint requires is rejected with 401 Unauthorized, the same response an unrecognised, malformed, revoked or disabled key returns. The API does not distinguish the two cases on the wire.

See the Permissions reference for the permission each endpoint requires.

Headers

x-api-signature
string

Signature of the request payload, used for request authentication where payload signing is enabled for your business.

x-api-version
string

API version in ISO 8601 format. The only supported version is 2026-05-18, which is also the default when the header is omitted. Any other value is rejected with a 400 Bad Request.

Body

application/json

A counter-offer never expires: it waits for Afriex to review it. baseSymbol and quoteSymbol must match the parent order's pair.

parentOrderId
string
required

The BUY-<id> order this counter-offer answers.

baseSymbol
string
required
quoteSymbol
string
required
amount
object
required
price
object
required
orderSide
enum<string>

Optional; when supplied it must be SELL.

Available options:
SELL
clientOrderId
string

Your own id for the counter-offer, unique per business, as on MarketPlaceOrderCreateRequest.

Maximum string length: 100
reference
string

Free-form reference, returned on reads.

Maximum string length: 255

Response

The counter-offer is waiting for Afriex to review it.

data
object