Download OpenAPI specification:Download
Interface contract for managing inbound payments via the payment provider and tracking partner balances. Note: The generation of Attijari settlement XML files is handled asynchronously by an internal batch process.
Called by the React Front-end to obtain the payment provider redirection URL.
| X-Correlation-ID | string Correlation identifier for request tracing |
| tripReservationId required | string Technical and unique ID generated automatically by the travelApi that identifies a trip reservation. |
{- "tripReservationId": "string"
}{- "transactionId": "string",
- "transactionReference": "string"
}Secure endpoint called by the payment partner after the customer completes the transaction on their gateway.
| X-Correlation-ID | string Correlation identifier for request tracing |
| merchantId required | string Unique merchant identifier provided by the payment partner. |
| orderId required | string The internal order reference linked to this payment. |
| amount | number <float> Amount processed by the provider. |
| status required | string Enum: "CAPTURED" "REJECTED" "CANCELLED" Final status of the transaction on the provider side. |
| authorizationCode | string Approval code provided by the banking network. |
| hash required | string SHA-256 signature for data integrity and security verification. |
{- "merchantId": "string",
- "orderId": "string",
- "amount": 0.1,
- "status": "CAPTURED",
- "authorizationCode": "string",
- "hash": "string"
}{- "status": "SUCCESS"
}Refunds the customer via the payment provider and adjusts the partner's balance accordingly.
| X-Correlation-ID | string Correlation identifier for request tracing |
| transactionReference required | string Reference of the original transaction to be refunded. |
| amount | number <float> Optional amount to refund. If omitted, a full refund will be processed. |
| reason required | string Justification for the refund request. |
{- "transactionReference": "string",
- "amount": 0.1,
- "reason": "Product not available"
}{- "refundId": "string",
- "status": "PENDING"
}Returns the "Net to Pay" balance for partners. If the user has the ZORNI_ADMIN role, all partner wallets are returned.
| currentPage | integer >= 0 Current page number. |
| sizePage | integer >= 3 Number of elements per page. |
| establishmentIds | string Example: establishmentIds=id1,id2,id3 Filter by establishment identifiers (comma-separated list). |
| X-Correlation-ID | string Correlation identifier for request tracing |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "availableBalance": {
- "id": "string",
- "value": 0,
- "currency": "string"
}, - "content": [
- {
- "transactionId": "string",
- "tripReservationId": "string",
- "externalPaymentId": "string",
- "establishmentId": "string",
- "currency": "MAD",
- "paymentMethod": "CREDIT_CARD",
- "grossAmount": 0.1,
- "paymentProviderFeePercent": 1.5,
- "paymentProviderFee": 0.1,
- "serviceFeePercent": 12,
- "serviceFees": 0.1,
- "netAmountPartner": 0.1,
- "paymentStatus": "INITIATED",
- "payoutStatus": "PENDING",
- "payoutScheduledAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "payoutBatchId": "string"
}
]
}