Request a destination
/destinationsAsks 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 getdestination_pending.active: forwards can use it.rejected: Pay.com didn't approve it. Forwards getdestination_not_allowed.disabled: it's turned off. Forwards getdestination_not_allowed.
Headers
AuthorizationstringRequiredParameters
namestringRequiredYour name for it.
hoststringRequiredThe provider's host name, without a scheme or path.
path_prefixesarray of stringsRequiredThe 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 stringsRequiredThe methods your requests use.
allowed_fieldsarray of stringsRequiredThe card fields your requests send, by their placeholder names.
Returns
Returns the destination, waiting for review.
idstringThe destination's id.
resourcestringnamestringYour name for it.
hoststringThe provider's host name. A request's host must match it exactly.
portintegerThe provider's port: 443 unless Pay.com agreed another during the review.
path_prefixesarray of stringsThe paths a request may start with.
methodsarray of stringsThe methods a request may use.
allowed_fieldsarray of stringsThe card fields a request may send.
mtls_certificatestring or nullThe client certificate Pay.com presents to the provider (fcert_…), for a provider that requires mutual TLS.
statusstringWhether forwards can use it.
Errors
400401sk-pay-com-, as Basic or Bearer auth.429Retry-After header's seconds.500503Retry-After header's seconds.