Skip to Content
Docs
Forward requests

Retrieve a forward request

GET/forward_requests/{id}

Returns what Pay.com kept about a forward: its destination, method and path, whether it succeeded, the provider's status, whether the request reached the provider (upstream_sent), the error if it failed, and when it was made. It never returns a body, a header value or card data.

Use it when a forward's upstream_sent is "unknown", with the id from the forward's x-pay-com-forward-id header. Pay.com keeps forward records for 30 days.

Headers

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

Path parameters

idstringRequired

The forward's id.

Returns

Returns the forward's record.

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.
404
No forward of your account has this id, or it's older than 30 days.
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?