Implementation Notes
This api offsets invoice which is uploaded by dealer before.
URL |
/offsetDDSInvoice |
Method |
POST |
Version |
1.0 |
Scope |
payment |
Authorization Flow |
B2B Credentials |
Name | Format | Description | Required/Optional |
MainCompanyID |
Integer (19) | Main company identification that is given by bank | Required |
MainCompanyDealerCode |
String (30) | Dealer identication number that is given by main company | Required |
InvoiceNumber |
String (20) | Invoice number that is given by main company | Required |
CurrencyCode |
String (3) |
Invoice currency code Explained at DDS/DCS services section |
Required |
AmounttobeOffset |
Decimal (9,2) | Amount to be offset | Required |
OffsetNumber |
String (20) | Invoice offset number that is given by main company | Required |
Name | Format | Description |
MainCompanyID |
Integer | Main company identification that is given by bank |
MainCompanyDealerCode |
String | Dealer identication number that is given by main company |
InvoiceNumber |
Integer | Invoice number that is given by main company |
LastPaymentDate |
yyyy-MM-ddTHH24:mm:ss | Invoice last payment date |
InvoiceAmount |
Decimal | Invoice amount |
CurrencyCode |
String | Invoice currency code |
NameSurname |
String | Dealer name/title that is given by main company |
InvoiceType |
Integer |
Invoice type 1: Term invoice, 2: Advance Invoice |
Description |
String | Description |
InvoiceReleaseDate |
yyyy-MM-ddTHH24:mm:ss | Invoice release date |
CompanyName |
String | Main company name |
GuaranteedAmountOriginal |
Decimal | Guaranteed Amount at entry date |
Nonguaranteed Amount at entry date |
Decimal | Nonguaranteed Amount at entry date |
AmountPaid |
Decimal | Invoice paid amount |
OffsetAmount |
Decimal | Invoice total offset amount |
TransactionId |
Integer | Transaction identification number which is created by system |
InvoiceStatusCode |
Integer |
Invocie status 1:Active, 2:Inactive |
InvoiceStatusDetailCode |
Integer |
DDS Status Detail Codes Explained at DDS/DCS services section |
InvoiceStatus |
Integer |
Invoice Status Codes Explained at DDS/DCS services section |
SystemEntryDate |
yyyy-MM-ddTHH24:mm:ss | Invoice enrty date |
RemainingAmount |
Decimal | Invoice remaining amount |
GuaranteedAmount |
Decimal | Invoice remaining guaranteed amount |
NonGuaranteedAmount |
Decimal | Invoice remaining nonguaranteed amount |
Reference6 |
String | Special area for company |
Reference7 |
String | Special area for company |
Reference8 |
String | Special area for company |
Reference9 |
String | Special area for company |
Reference10 |
String | Special area for company |
Message Code | Description |
ACBH000027 |
Currenny code cannot be empty. |
ACBH000028 |
Currency code is invalid. |
ACBH000162 |
Main company id format is incorrect. |
ACBH000163 |
Dealer code id format is incorrect. |
ACBH000164 |
Invoice number format is incoorect. |
ACBH000170 |
Dealer code cannot be empty. |
ACBH000174 |
Invoice number cannot be empty. |
ACBH000251 |
Offset number cannot be empty. |
Response:
{ "MainCompanyID": 371004, "MainCompanyDealerCode": "apitest1", "InvoiceNumber": "1011012", "CurrencyCode": "TL", "AmounttobeOffset": 60, "OffsetNumber": "2" }
Cevap:
{ "Header": { "StatusCode": "APIGW000000", "StatusDescription": "Completed", "ObjectID": "5a447691-8852-4198-858f-325c44e2c4ea" }, "Data": { "InvoiceInfo": { "CurrencyCode": "TL", "InvoiceStatusCode": 2, "InvoiceStatusDetailCode": 6, "InvoiceNumber": 1011012, "MainCompanyID": 371004, "MainCompanyDealerCode": "apitest1" } } }
API URL : https://apigw.vakifbank.com.tr:8443