Prefer
headers to indicate preferences for specific server behaviors during request processing.
This allows our API to evolve, adding new functionality, while maintaining backwards compatibility where possible.
The Prefer
header is optional for all API requests. Endpoints that don’t support specific Prefer
values will ignore them without causing errors.
Prefer: resource=<resource_type>
Prefer: resource
header is supported by our API. This header allows a merchant to opt into a different resource
to return. Both the void and capture endpoints support this header to opt into returning a specific resource type.
Prefer: resource=transaction-void
on a void call, the response type will be a transaction-void
resource, rather than the standard
transaction
returned by this API.prefer
, PREFER
, or Prefer
. The value
of a header is case-sensitive and needs to be lower-case to match both the resource
key and the <resource_type>
value.