POST https://sandbox.payme.io/api/partner/api/documents/income/hook/alpha-drivePOST https://live.payme.io/api/partner/api/documents/income/hook/alpha-driveNo credentials are documented for this endpoint.
Webhook endpoint for AlphaDrive invoice integration. Receives notifications when invoices are created in AlphaDrive system.
This endpoint takes no path, query or header parameters.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
eventType |
string | no | Event type (e.g., INVOICE_CREATED) |
invoiceId |
string | no | AlphaDrive invoice ID |
sellerId |
string | no | Seller identifier |
totalAmount |
number | no | Total document amount |
vatAmount |
number | no | VAT amount |
currency |
string | no | Currency code |
timestamp |
string | no | Event timestamp |
{
"eventType": "INVOICE_CREATED",
"invoiceId": "AD-2024-12345",
"sellerId": "seller_67890",
"totalAmount": 1170,
"vatAmount": 170,
"currency": "ILS",
"timestamp": "2024-01-15T10:30:00Z"
}
curl -X POST 'https://sandbox.payme.io/api/partner/api/documents/income/hook/alpha-drive' \
-H 'Content-Type: application/json' \
--data-raw '{
"eventType": "INVOICE_CREATED",
"invoiceId": "AD-2024-12345",
"sellerId": "seller_67890",
"totalAmount": 1170,
"vatAmount": 170,
"currency": "ILS",
"timestamp": "2024-01-15T10:30:00Z"
}'
const response = await fetch("https://sandbox.payme.io/api/partner/api/documents/income/hook/alpha-drive", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"eventType": "INVOICE_CREATED",
"invoiceId": "AD-2024-12345",
"sellerId": "seller_67890",
"totalAmount": 1170,
"vatAmount": 170,
"currency": "ILS",
"timestamp": "2024-01-15T10:30:00Z"
}),
});
console.log(await response.text());
import requests
response = requests.post(
"https://sandbox.payme.io/api/partner/api/documents/income/hook/alpha-drive",
json={
"eventType": "INVOICE_CREATED",
"invoiceId": "AD-2024-12345",
"sellerId": "seller_67890",
"totalAmount": 1170,
"vatAmount": 170,
"currency": "ILS",
"timestamp": "2024-01-15T10:30:00Z",
},
)
print(response.text)
<?php
$body = <<<'BODY'
{
"eventType": "INVOICE_CREATED",
"invoiceId": "AD-2024-12345",
"sellerId": "seller_67890",
"totalAmount": 1170,
"vatAmount": 170,
"currency": "ILS",
"timestamp": "2024-01-15T10:30:00Z"
}
BODY;
$ch = curl_init('https://sandbox.payme.io/api/partner/api/documents/income/hook/alpha-drive');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
| Field | Type | Description |
|---|---|---|
statusCode |
integer | |
message |
string | |
error |
string |
{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}