Create Merchant Payment Control
POST/v1/acquirer/merchants/:merchant_id/payment_controls/:type
Create a payment control scoped to a single merchant.
Required permission: payment_controls_create.
Request
Path Parameters
Acquirer-assigned merchant identifier (the merchant_id field of
the merchant, not its internal UUID).
Possible values: [bin_range, bin_country, pan, fingerprint, ip, ip_country, eci, tds_status]
The identifier type of the rules to operate on.
- application/json
Body
required
Possible values: [allow, deny]
Whether matching payments are allowed or denied.
The value to match, in the format dictated by the rule's identifier type (see the API description table).
Responses
- 201
- 400
- 401
- 403
- 404
- 422
The created payment control.
- application/json
- Schema
- Example (from schema)
Schema
A 36-character UUIDv7 identifier.
Possible values: [bin_range, bin_country, pan, fingerprint, ip, ip_country, eci, tds_status]
Possible values: [Acquirer, Merchant]
Whether the rule is acquirer-level or merchant-level.
A 36-character UUIDv7 identifier.
Possible values: [allow, deny]
ISO 8601 UTC timestamp with time zone designator.
ISO 8601 UTC timestamp with time zone designator.
{
"id": "0191f5a7-3d99-7f81-b7ec-962a5f5fdd7c",
"identifier_type": "bin_range",
"identifier": "SA",
"owner_type": "Acquirer",
"owner_id": "0191f5a7-3d99-7f81-b7ec-962a5f5fdd7c",
"activity": "allow",
"created_at": "2025-01-15T14:30:00Z",
"updated_at": "2025-01-15T14:30:00Z"
}
Business rule violation.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Invalid type"
}
Authentication failed.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Missing authentication information"
}
The API key lacks the required permission.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "Unauthorized"
}
The referenced resource does not exist or belongs to another acquirer.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "The Order you are looking for was not found."
}
Validation error.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object
required
property name*
string[]
string
{
"message": "The given data was invalid.",
"errors": {
"email": [
"This field is missing."
]
}
}