CreateOrderPayment

Usage
Create a payment for an order
Basic URI
/DesktopModules/RazorCart/Services/v1/Orders/{id}/Payments
Parameters
int id               The order Id
Data
payment        The order payment object
AUTH
Bearer JWT
Required Scope(s)
orders, payments, create
 
Request
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Orders/109/Payments HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"CustomerID":2,"PayType":"Money Order","PayDate":"2017-02-24T13:22","Amount":20.7888,"Quantity":1,"TransID":"C76rD8GdvIW","BillingAddress":"4909 Chandler Hollow Road","BillingCity":"Pittsburgh","BillingState":"PA","BillingZip":"15201","BillingCountry":"US","Status":"Received","BillingName":"James Summy","InvoiceNo":"Inv-905","PONumber":"PO-9087","Success":true,"AdminNotes":"Payment was collected","StoreID":1}
 
Response
{
  "PayHistID": 138,
  "CustomerID": 2,
  "PayType": "Money Order",
  "PayDate": "2017-02-24T13:22:00",
  "Amount": 20.7888,
  "Quantity": 1,
  "ExpRoute": null,
  "TransID": "C76rD8GdvIW",
  "BillingAddress": "4909 Chandler Hollow Road",
  "BillingCity": "Pittsburgh",
  "BillingState": "PA",
  "BillingZip": "15201",
  "BillingCountry": "US",
  "Coupon": null,
  "Notes": null,
  "Status": "Received",
  "AuthCode": null,
  "BillingName": "James Summy",
  "PortalID": 0,
  "InvoiceNo": "Inv-905",
  "PONumber": "PO-9087",
  "Success": true,
  "GiftCardID": 0,
  "OrderID": 109,
  "IPAddress": null,
  "ModifiedBy": "host",
  "DateModified": "2017-03-02T15:21:58.9280819-08:00",
  "MaskAcctNo": null,
  "TransType": null,
  "ClearDate": "1753-01-01T00:00:00",
  "AdminNotes": "Payment was collected",
  "OffsetID": 0,
  "SubscriptionID": 0,
  "PayMethodID": 0,
  "StoreID": 1
}

Add Feedback