Choose the flow
Use direct H2H, hosted checkout, a stored-card token, or payout based on how payment data is collected.
PAYSTAR MERCHANT API
Create deposits and payouts, check their status, and inspect balances through a compact Bearer-authenticated API. Start with the guided path, then download the matching machine-readable contract for your tools.
START BY TASK
This documentation separates the stable public contract from route-specific configuration. Use it for implementation planning, then confirm the merchant profile before sending traffic.
The API accepts the documented contract, while active currencies, limits, required additionalFields and routes depend on the pipeline assigned to your merchant.
QUICK START
Use direct H2H, hosted checkout, a stored-card token, or payout based on how payment data is collected.
Receive the Bearer key assigned to the pipeline and confirm the server IP, currencies and required fields with PayStar.
Send an amount in major currency units and a unique externalTransactionId. Store both your ID and the PayStar ID.
Persist asynchronous updates. After a timeout or 5xx, query status with the original merchant ID before any retry.
curl --request POST \
--url https://secure.paystar.uk/api/v1/integration/deposit-order/ \
--header 'Authorization: Bearer <PAYSTAR_DEPOSIT_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 100.00,
"currency": "EUR",
"externalTransactionId": "order-demo-001",
"callbackUrl": "https://merchant.example/paystar/callback",
"processingRedirectUrl": "https://merchant.example/payment/processing",
"failedRedirectUrl": "https://merchant.example/payment/failed",
"successRedirectUrl": "https://merchant.example/payment/success",
"additionalFields": []
}'
AUTHENTICATION & ENVIRONMENTS
Send the key in the Authorization header on every protected request. Each key is issued for one specific pipeline. Two deposit pipelines use different keys, and deposit and payout pipelines never share a key.
Authorization: Bearer <pipeline-specific-key>Use only the host and credentials assigned to your integration profile.
Never expose the key in browser code, URLs, source control, screenshots or logs.
The key, access, currencies and available operations are bound to one pipeline. Any additional pipeline requires its own key.
API HOSTS
secure.paystar.uk is the main domain for the complete API: deposits, balances, payouts and status checks. init.paystar.uk and token.paystar.uk are used only for their specific deposit collection models.
Use this domain for the full merchant API when it is assigned to your profile. Direct H2H deposit creation on this host uses P2PDepositRequest.
Hosted card collection that keeps card entry outside the merchant page and can reduce PCI DSS scope. Used only to create this hosted deposit flow.
H2CDepositRequestCreates a deposit using the token assigned to an approved merchant tokenized flow.
TokenDepositRequestMerchants without the required PCI scope must use hosted checkout or an approved tokenized flow instead of collecting card data directly.
LIFECYCLE & SAFE RETRIES
orderStatus as current state. orderHistory can be empty or delayed.externalTransactionId first.DASHBOARD BUILDING BLOCKS
PayStar can provide your developers with a set of API methods and reusable frontend components for a payment dashboard with the same operational depth as our own interfaces. Use them to assemble the views and workflows your support, finance and payment teams need.
Bring deposits, payouts, balances, statuses and exceptions into one consistent data layer.
Use reusable PayStar components for payment views and operational workflows instead of building every interface element from scratch.
Build a private payment workspace around the roles, data and actions your team actually needs.
API REFERENCE
Open an operation to inspect its request contract, successful response and HTTP outcomes. Each stable operationId can also be used as an anchor by documentation and code-generation tools.
/api/v1/integration/deposit-order/FLOW-SPECIFICCreates an H2H, hosted or tokenized deposit according to the selected host and request schema.
application/jsonadditionalFields containing cardStorageToken.amountrequiredcurrencyrequiredexternalTransactionIdrequiredcallbackUrlprocessingRedirectUrlP2P requiredfailedRedirectUrlP2P requiredsuccessRedirectUrlP2P requiredadditionalFields[]token requiredcardStorageToken.application/jsonexternalId · orderStatusOptional paymentDetails: card, fio, bank and formUrl. Treat these values as sensitive.externalId · orderStatus · formUrlOpen the returned hosted form URL for the customer.externalId · orderStatusOptional paymentDetails.formUrl.BusinessErrorProblemDetails415BusinessErrorBusinessError/api/v1/integration/deposit-order/{externalId}/statusDOCUMENTEDpathexternalIdrequiredapplication/jsonexternalIdrequiredorderStatusrequiredamountexternalParamsorderHistory[]DepositStatusResponseBusinessError/api/v1/integration/deposit-order/{externalTransactionId}/status-by-external-transaction-idDOCUMENTEDpathexternalTransactionIdrequiredapplication/jsonexternalIdrequiredorderStatusrequiredamountexternalParamsorderHistory[]DepositStatusResponseBusinessError/api/v1/balance/merchant?currency={currency}DOCUMENTEDReturns balance information for the permitted merchant profile and requested currency.
querycurrencyrequiredapplication/jsoncurrencyrequiredmerchantBalancerequiredmerchantOverdraftrequiredpipelineBalancerequiredpipelineAvailableBalancerequiredpipelineProcessingOrdersDepositrequiredpipelineProcessingOrdersWithdrawalsrequiredBalanceBusinessError/api/v1/integration/withdrawal-order/DOCUMENTEDCreates a payout for merchant profiles with payout capability enabled. Required fields and routes remain profile-specific.
application/jsonamountrequiredcurrencyrequiredexternalTransactionIdrequiredcallbackUrladditionalFields[]flow-specificapplication/jsonexternalIdrequiredorderStatusrequiredPayoutCreateResponseBusinessErrorProblemDetails415BusinessErrorBusinessErrorBusinessError/api/v1/integration/withdrawal-order/{externalId}/statusDOCUMENTEDpathexternalIdrequiredapplication/jsonexternalIdrequiredorderStatusrequiredamountexternalParamsorderHistory[]PayoutStatusResponseBusinessError/api/v1/integration/withdrawal-order/{externalTransactionId}/status-by-external-transaction-idDOCUMENTEDpathexternalTransactionIdrequiredapplication/jsonexternalIdrequiredorderStatusrequiredamountexternalParamsorderHistory[]PayoutStatusResponseBusinessErrorCONTRACT BOUNDARY
Operations, schemas, authentication pattern, statuses and response models documented on this page.
Enabled capabilities, hosts, currencies, limits, credentials and required additional fields.
Route availability, onboarding, payment experience and provider-specific operating constraints.
PayStar provides the integration profile separately so the team can apply the public contract to the exact merchant scenario.
MACHINE-READABLE
Download the credential-free baseline for editors, code generation and integration tooling. Merchant configuration is provided separately.
READY TO INTEGRATE?
PayStar will confirm credentials, pipeline capabilities, supported currencies, limits and required fields for your merchant scenario.
Talk to an engineer →