Skip to Content
Docs
Destinations

Request a destination

POST/destinations

Asks Pay.com to let your requests reach a provider endpoint. Pay.com staff review every destination before any card can go to it. It's pending until then, and your account's owners get an email when it's active. You can also request a destination in the dashboard.

Ask only for what the provider needs: the paths you call, the methods you use and the card fields it takes. Pay.com sets the port, the timeout and any client certificate during the review.

A destination's status is one of:

  • pending: waiting for Pay.com's review. Forwards get destination_pending.
  • active: forwards can use it.
  • rejected: Pay.com didn't approve it. Forwards get destination_not_allowed.
  • disabled: it's turned off. Forwards get destination_not_allowed.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Parameters

namestringRequired

Your name for it.

hoststringRequired

The provider's host name, without a scheme or path.

path_prefixesarray of stringsRequired

The paths your requests call, as narrow as the provider allows. A prefix matches whole path segments: /v2/payments matches /v2/payments/123, not /v2/payments-old.

methodsarray of stringsRequired

The methods your requests use.

allowed_fieldsarray of stringsRequired

The card fields your requests send, by their placeholder names.

Returns

Returns the destination, waiting for review.

idstring

The destination's id.

resourcestring

One of destination.

namestring

Your name for it.

hoststring

The provider's host name. A request's host must match it exactly.

portinteger

The provider's port: 443 unless Pay.com agreed another during the review.

path_prefixesarray of strings

The paths a request may start with.

methodsarray of strings

The methods a request may use.

allowed_fieldsarray of strings

The card fields a request may send.

mtls_certificatestring or null

The client certificate Pay.com presents to the provider (fcert_…), for a provider that requires mutual TLS.

statusstring

Whether forwards can use it.

One of pending, active, rejected or disabled.

Errors

400
The request isn't valid, for example a placeholder in the URL. The message names the field.
401
The request has no API key that starts sk-pay-com-, as Basic or Bearer auth.
429
Too many requests for your account or the destination. Retry after the Retry-After header's seconds.
500
Something went wrong on Pay.com's side. Nothing was sent; try again.
503
Pay.com couldn't check the API key, read the card or take the request. Nothing was sent. Retry after the Retry-After header's seconds.
Was this page helpful?