POST api/PayLinkPaymentComplete
Create PayFabricTransaction and SalesDocumentPayment from PayLink request
Request Information
Request body formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "InstID": "sample string 2", "Device": "7f5a482e-b1ce-4c07-8630-a8b16295c788", "SetupId": "sample string 4", "Currency": "sample string 5", "Amount": 6.0, "DocumentAmount": 7.0, "TaxAmount": 8.0, "TradeDiscount": 9.0, "Freight": 10.0, "MiscAmount": 11.0, "CustomerNumber": "sample string 12", "CustomerName": "sample string 13", "IsMultipleInvoice": true, "DocumentNumber": "sample string 15", "TransactionType": "sample string 16", "CreatedOn": "sample string 17", "DocDate": "sample string 18", "DueDate": "sample string 19", "DocType": 20, "PaymentTerm": "sample string 21", "SourceOfDocument": 22, "BatchSource": 23, "BatchNo": "sample string 24", "MerchantEmail": "sample string 25", "ReturnUrl": "sample string 26", "Status": "Draft", "IntegrationStatus": 27, "Tax": {}, "ShippingAddress": { "City": "sample string 1", "Country": "sample string 2", "Email": "sample string 3", "Address1": "sample string 4", "Address2": "sample string 5", "Address3": "sample string 6", "Phone1": "sample string 7", "Phone2": "sample string 8", "Phone3": "sample string 9", "State": "sample string 10", "Zip": "sample string 11" }, "BillingAddress": { "City": "sample string 1", "Country": "sample string 2", "Email": "sample string 3", "Address1": "sample string 4", "Address2": "sample string 5", "Address3": "sample string 6", "Phone1": "sample string 7", "Phone2": "sample string 8", "Phone3": "sample string 9", "State": "sample string 10", "Zip": "sample string 11" }, "Items": [ { "ItemCode": "sample string 1", "AppliedAmount": 2.0, "DueDate": "2025-04-04T00:34:04.643-04:00", "Description": "sample string 3", "UnitPrice": 4.0, "Quantity": 5.0, "PriceLevel": "sample string 6", "UnitOfMeasure": "sample string 7", "SiteCode": "sample string 8", "MarkDown": 9.0, "TaxAmount": 10.0, "MiscAmount": 11.0, "UserDefinedFields": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "Items": [] }, { "ItemCode": "sample string 1", "AppliedAmount": 2.0, "DueDate": "2025-04-04T00:34:04.643-04:00", "Description": "sample string 3", "UnitPrice": 4.0, "Quantity": 5.0, "PriceLevel": "sample string 6", "UnitOfMeasure": "sample string 7", "SiteCode": "sample string 8", "MarkDown": 9.0, "TaxAmount": 10.0, "MiscAmount": 11.0, "UserDefinedFields": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "Items": [] }, { "ItemCode": "sample string 1", "AppliedAmount": 2.0, "DueDate": "2025-04-04T00:34:04.643-04:00", "Description": "sample string 3", "UnitPrice": 4.0, "Quantity": 5.0, "PriceLevel": "sample string 6", "UnitOfMeasure": "sample string 7", "SiteCode": "sample string 8", "MarkDown": 9.0, "TaxAmount": 10.0, "MiscAmount": 11.0, "UserDefinedFields": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "Items": [] } ], "UserDefinedFields": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "Notification": { "Type": "sample string 1", "EmailTemplate": "sample string 2", "SMSTemplate": "sample string 3", "ResponseStatus": "sample string 4", "ResponseMessage": "sample string 5" }, "PostDataType": "sample string 29", "TransactionKey": "sample string 30", "PaidOn": "sample string 31", "LastProcessDate": "sample string 32", "Message": "sample string 33", "CustomeMessage": "sample string 34", "Payment": { "CreditCardGateway": "sample string 1", "ECheckGateway": "sample string 2", "AcceptType": 3 }, "NotificationEmail": "sample string 35", "NotificationPhone": "sample string 36", "OriginalTender": "sample string 37", "PayFabricTransactionData": { "Customer": "sample string 1", "SetupID": "sample string 2", "Amount": "sample string 3", "BatchNumber": "sample string 4", "Card": { "Aba": "sample string 1", "Account": "sample string 2", "AccountType": "sample string 3", "Billto": { "City": "sample string 1", "Country": "sample string 2", "Customer": "sample string 3", "Email": "sample string 4", "ID": "sample string 5", "Line1": "sample string 6", "Line2": "sample string 7", "Line3": "sample string 8", "ModifiedOn": "sample string 9", "Phone": "sample string 10", "State": "sample string 11", "Zip": "sample string 12" }, "CardHolder": { "DriverLicense": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "MiddleName": "sample string 4", "SSN": "sample string 5" }, "CardName": "sample string 4", "CheckNumber": "sample string 5", "Connector": "sample string 6", "Customer": "sample string 7", "ExpDate": "sample string 8", "GPAddressCode": "sample string 9", "GatewayToken": "sample string 10", "ID": "sample string 11", "Identifier": "sample string 12", "IsDefaultCard": true, "IsLocked": true, "IsSaveCard": true, "IssueNumber": "sample string 16", "ModifiedOn": "sample string 17", "StartDate": "sample string 18", "Tender": "sample string 19", "UserDefine1": "sample string 20", "UserDefine2": "sample string 21", "UserDefine3": "sample string 22", "UserDefine4": "sample string 23" }, "Currency": "sample string 5", "Document": { "Head": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ], "Lines": [ { "Columns": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ], "UserDefined": [ {}, {}, {} ] }, { "Columns": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ], "UserDefined": [ {}, {}, {} ] }, { "Columns": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ], "UserDefined": [ {}, {}, {} ] } ], "UserDefined": [ {}, {}, {} ] }, "Key": "sample string 6", "MSO_EngineGUID": "sample string 7", "ModifiedOn": "sample string 8", "PayDate": "sample string 9", "ReferenceKey": "sample string 10", "ReqAuthCode": "sample string 11", "ReqOriginid": "sample string 12", "ReqTrxTag": "sample string 13", "SetupId": "sample string 14", "Shipto": { "City": "sample string 1", "Country": "sample string 2", "Customer": "sample string 3", "Email": "sample string 4", "ID": "sample string 5", "Line1": "sample string 6", "Line2": "sample string 7", "Line3": "sample string 8", "ModifiedOn": "sample string 9", "Phone": "sample string 10", "State": "sample string 11", "Zip": "sample string 12" }, "Tender": "sample string 15", "TrxResponse": { "AVSAddressResponse": "sample string 1", "AVSZipResponse": "sample string 2", "AuthCode": "sample string 3", "CVV2Response": "sample string 4", "IAVSAddressResponse": "sample string 5", "Message": "sample string 6", "OriginationID": "sample string 7", "PayFabricErrorCode": {}, "RespTrxTag": "sample string 9", "ResultCode": "sample string 10", "Status": "sample string 11", "TAXml": "sample string 12", "TerminalID": "sample string 13", "TerminalResultCode": "sample string 14", "TrxDate": "sample string 15", "TrxKey": "sample string 16" }, "TrxUserDefine1": "sample string 16", "TrxUserDefine2": "sample string 17", "TrxUserDefine3": "sample string 18", "TrxUserDefine4": "sample string 19", "Type": "sample string 20" }, "Link": "sample string 38" }
Response Information
Response body formats
application/json, text/json
Sample:
{ "StatusCode": "Continue", "ErrorCode": 0, "ErrorCodeMessage": "No Error", "Messages": [ "sample string 1", "sample string 2", "sample string 3" ] }