PayOrc
Payouts

Create Authentication Token

Generate an authentication token for PayOrc payout API requests.

Create Authentication Token

API Version: 3.0.0

Generate an API key for Payouts by navigating to Payouts → API Keys → Add new API key.

This token is required for all subsequent Payout API calls. Ensure you store it securely and refresh it before expiration.

Payout APIs are live-only. Test/sandbox API keys are rejected with code E0402.

Endpoint

MethodURL
GEThttps://payout.payorc.com/v1/token

Headers

HeaderTypeRequiredDescription
merchant-keyStringYesYour merchant key (e.g., live-PYOOZ10UEW28S7)
merchant-secretStringYesYour merchant secret (e.g., sec-CJ10EFH281M)

Code Examples

curl -X GET "https://payout.payorc.com/v1/token" \
-H "merchant-key: {{payout-key}}" \
-H "merchant-secret: {{payout-secret}}"

Response — Success (200)

{
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
    },
    "message": "Token generated successfully",
    "status": "success",
    "code": "00"
}

Response Fields

FieldTypeDescription
dataObjectContains token data
data.tokenStringJWT Bearer token (valid for 24 hours)
messageStringToken generated successfully
statusStringsuccess
codeString00

Response — Error (4xx)

{
    "message": "Invalid credentials",
    "status": "fail",
    "code": "E0401"
}

Common Error Codes

CodeMeaning
E0401Invalid merchant-key or merchant-secret
E0402Test API key not allowed (live only)
E0403Inactive API key
E0404Deleted API key
E0001Missing required headers

On this page