Choose your base URL
Live API
Use this base URL for production:Credentials and base URLs are issued as a matching set. If you have not received a base URL or confirmed your credential scope, contact your Pagsmile integration representative before sending traffic.
Configure your client
1
Set the base URL
Store the assigned URL in your client configuration. For live traffic, the shell configuration is:If Pagsmile has provided a different URL for onboarding or validation, use that exact value with its matching credentials.
2
Append the endpoint path
Append the path exactly as documented. For example, Get Charge Details uses With the live base URL, this prints:This example only constructs and prints the URL. It does not send an API request.
/v3/charges/details. Keep /v3 in the endpoint path rather than adding it to the base URL.3
Apply the matching credentials and sign
Use the credentials issued for the selected base URL. Check the endpoint’s Authentication and target section for the supported credential owner and any account-target headers.Generate the signature from the exact host-independent path, query, headers, and raw body you will send. In this example, the signing path is
/v3/charges/details; the scheme and hostname are not part of that path.Follow Request signing for the complete signing rules.Environment isolation
Keep each environment’s configuration and request state separate.Before you send a request
Confirm that:- The configured base URL is the one supplied for your intended environment.
- The credentials belong to that base URL and have the scope required by the operation.
- The outgoing request uses the exact documented path, including
/v3. - The signature matches the path, query, headers, and raw body actually transmitted.
- Your nonce store, logs, and secret configuration are separated by environment.
Choose the right credential
Your credential determines which operations you can call and how you select an account.Account-targeting rules
Account-targeting rules
The account-target headers are
X-ISPB and X-Account-Number.- Always send them together with non-empty values when explicit targeting is required or allowed.
- The selected account must be active, belong to the authenticated user, and have a valid account hierarchy.
- When the headers are present, include both exact trimmed values in the canonical headers before calculating the signature.
- Do not add account-target headers to platform operations or user-owned managed-account operations.
Connection questions
I have not received an onboarding or validation URL
I have not received an onboarding or validation URL
Contact your Pagsmile integration representative to confirm the environment available to you and obtain its matching credentials. Use an alternate URL only when Pagsmile provides it.
I am changing the API base URL
I am changing the API base URL
Switch to the credentials and configuration assigned to the new environment. Select its nonce store and logs, and sign the exact request you will transmit. Changing the hostname alone does not establish access to another environment.
My request fails authentication
My request fails authentication
First confirm the base URL and credential pairing. Then review the endpoint’s credential scope, account-target rules, and request signing requirements. For an API error response, use Error Catalog to choose the next check.
Continue your integration
Prepare a signed request
Follow the integration guide for credentials, signing, and response handling.
Choose an API operation
Find the endpoint for your task and check its access requirements.