Direct Payment
POST
https://api.zid.sa/v1{ProviderUrl}/tokens
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.paymentprovider.com/tokens' \
--header 'Content-Type: application/json' \
--data-raw '{
"publishableApiKey": "pk_test_abc123xyz",
"providerMerchantId": "merchant_456789",
"name": "John Doe",
"number": "4111111111111111",
"cvc": "123",
"month": "09",
"year": "2027"
}'
Response Response Example
200 - Example 1
{
"token": "tok_abc123xyz",
"brand": "visa",
"funding": "Credit",
"country": "SA",
"network": "visa",
"lastFour": "4242"
}
Request
Path Params
ProviderUrl
stringÂ
required
Example:
https://api.paymentprovider.com
Body Params application/json
Responses
Modified at 2025-06-13 05:39:05