Description
It will be ensured that salary file is sent to NYDO system. Also shows previous salary payment orders within document_id and order_id.
How it Works
Sample Request - 1
POST {API_HOST}/api/v1/salary-payments
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID}
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token}
Accept: application/json
Parameters
{
"reference_number": "965862",
"customer_number": 160052878,
"branch_code": 4299,
"order_date": "2019-10-09",
"order_time": "15:30",
"source_account": {
"address": "bursa",
"city": 16,
"tax_id": 56143442986,
"name": "BUDGETFUL CARPOCARPAL",
"iban": "TR640006400000142991501111"
},
"orders": [
{
"reference_number": "965862",
"amount": {
"value": 11,
"currency": "TRY"
},
"target": {
"type": "C",
"work_start_date": "2019-07-30T11:35:22.656Z",
"job": "developer",
"tax_id": 8110028803,
"name": "BUDGETFUL CARPOCARPAL",
"iban": "TR610006400000142993011111"
},
"description": "deneme"
}
]
}
Sample Request - 2
GET {API_HOST}/api/v1/salary-payments/{document_id}
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID}
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token}
Accept: application/json
Parameters
Document_id: Identifier of a previously created salary payment document
Sample Request - 3
GET {API_HOST}/api/v1/salary-payments/{document_id}/orders/{order_id}
Headers:
X-IBM-client-id: {YOUR_CLIENT_ID}
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token}
Content-Type: application/json
Parameters
Order_id: salary payment order identifier
Sample Response
Sample Response - 1
{
"data": {
"document_id": 22791,
"reference_number": "965862",
"orders": [
{
"reference_number": "965862",
"order_id": 1,
"status": "Validating"
}
],
"status": "Validating",
"order_date": "2019-11-26T08:30:00"
},
"meta": {
"transaction_id": "0HLRF851GTK7C:00000001"
}
}
Sample Response - 2
{
"data": {
"customer_number": 161668707,
"orders": [
{
"order_id": 2,
"amount": {
"value": 100.0,
"currency": "TRY"
},
"target": {
"type": "C",
"work_start_date": "2010-01-01T00:00:00",
"job": "analist",
"tax_id": 12644266124,
"name": "UNAL…",
"iban": "TR980006400000142993170845"
},
"source": {
"iban": "TR310006400000142993028394"
},
"description": "maaş",
"order_status": "Completed"
},
...
],
"status": "Completed"
},
"meta": {
"page_count": 1,
"page_size": 4,
"page_number": 1,
"transaction_id": "0HLQGM74PECB9:00000001"
}
}
Sample Response - 3
{
"data": {
"customer_number": 161668707,
"orders": [
{
"order_id": 2,
"amount": {
"value": 100.0,
"currency": "TRY"
},
"target": {
"type": "C",
"work_start_date": "2010-01-01T00:00:00",
"job": "analist",
"tax_id": 12644266124,
"name": "UNAL ATALAY",
"iban": "TR980006400000142993170845"
},
"source": {
"iban": "TR310006400000142993028394"
},
"description": "maaş",
"order_status": "Completed"
}
],
"status": "Completed"
},
"meta": {
"page_count": 1,
"page_size": 4,
"page_number": 1,
"transaction_id": "0HLQGM74PECB9:00000001"
}
}