Devoluciones (Purchase returns)

Devoluciones (Purchase returns)

Obtener lista de devoluciones

Este endpoint requiere autenticación
  1. GET /webapi/purchasereturns?skip=0&maxRecords=10
Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":
  4.     [
  5.         {
  6.             "AccountID": null,
  7.             "CurrencyID": null,
  8.             "DiscountPercent": 0.0,
  9.             "DocDate": "0001-01-01T00:00:00",
  10.             "DocID": null,
  11.             "ExchangeRate": 0.0,
  12.             "ExchangeRate2": 0.0,
  13.             "ExpenseType": null,
  14.             "ImageFilePath": null,
  15.             "Notes": null,
  16.             "NotesVendor": null,
  17.             "PaymentTerms": null,
  18.             "PDFFilePath": null,
  19.             "ProjectID": null,
  20.             "RelatedID": null,
  21.             "TaxSequence": null,
  22.             "WarehouseID": null,
  23.             "XMLFilePath": null,
  24.             "Retentions": 
  25.             [
  26.                 {
  27.                     "Amount": 0.0,
  28.                     "RetentionID": "00000000-0000-0000-0000-000000000000"
  29.                 }
  30.             ],
  31.             "Items": 
  32.             [
  33.                 {
  34.                     "ItemID": null,
  35.                     "ItemName": null,
  36.                     "ItemSKU": null,
  37.                     "Price": 0.0,
  38.                     "PurchaseAccountCode": null,
  39.                     "PurchaseAccountID": null,
  40.                     "Quantity": 0.0,
  41.                     "TaxID": null,
  42.                     "Total": 0.0
  43.                 }
  44.             ]
  45.         }
  46.     ]
  47. }


Agregar Devolución

Este endpoint requiere autenticación
  1. POST /webapi/purchasereturns

Solicitud esperada (body):
  1. {
  2.     "AccountID": null,
  3.     "CurrencyID": null,
  4.     "DiscountPercent": 0.0,
  5.     "DocDate": "0001-01-01T00:00:00",
  6.     "DocID": null,
  7.     "ExchangeRate": 0.0,
  8.     "ExchangeRate2": 0.0,
  9.     "ExpenseType": null,
  10.     "ImageFilePath": null,
  11.     "Notes": null,
  12.     "NotesVendor": null,
  13.     "PaymentTerms": null,
  14.     "PDFFilePath": null,
  15.     "ProjectID": null,
  16.     "RelatedID": null,
  17.     "TaxSequence": null,
  18.     "WarehouseID": null,
  19.     "XMLFilePath": null,
  20.     "Retentions": 
  21.     [
  22.         {
  23.             "Amount": 0.0,
  24.             "RetentionID": "00000000-0000-0000-0000-000000000000"
  25.         }
  26.     ],
  27.     "Items": 
  28.     [
  29.         {
  30.             "ItemID": null,
  31.             "ItemName": null,
  32.             "ItemSKU": null,
  33.             "Price": 0.0,
  34.             "PurchaseAccountID": null,
  35.             "Quantity": 0.0,
  36.             "TaxID": null,
  37.             "Total": 0.0
  38.         }
  39.     ]
  40. }

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":"bde77223-a6a6-4ce9-a52a-7958a2c8365e"
  4. }

Editar Devolución

Este endpoint requiere autenticación
  1. PUT /webapi/purchasereturns

Solicitud esperada (body):
  1. {
  2.     "ID": "00000000-0000-0000-0000-000000000000",
  3.     "AccountID": null,
  4.     "CurrencyID": null,
  5.     "DiscountPercent": 0.0,
  6.     "DocDate": "0001-01-01T00:00:00",
  7.     "DocID": null,
  8.     "ExchangeRate": 0.0,
  9.     "ExchangeRate2": 0.0,
  10.     "ExpenseType": null,
  11.     "ImageFilePath": null,
  12.     "Notes": null,
  13.     "NotesVendor": null,
  14.     "PaymentTerms": null,
  15.     "PDFFilePath": null,
  16.     "ProjectID": null,
  17.     "RelatedID": null,
  18.     "TaxSequence": null,
  19.     "WarehouseID": null,
  20.     "XMLFilePath": null,
  21.     "Retentions": 
  22.     [
  23.         {
  24.             "Amount": 0.0,
  25.             "RetentionID": "00000000-0000-0000-0000-000000000000"
  26.         }
  27.     ],
  28.     "Items": 
  29.     [
  30.         {
  31.             "ItemID": null,
  32.             "ItemName": null,
  33.             "ItemSKU": null,
  34.             "Price": 0.0,
  35.             "PurchaseAccountID": null,
  36.             "Quantity": 0.0,
  37.             "TaxID": null,
  38.             "Total": 0.0
  39.         }
  40.     ]
  41. }

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":null
  4. }

Eliminar Devolución

Este endpoint requiere autenticación
  1. DELETE /webapi/purchasereturns?ID=a2e0b740-f036-4d47-8eb3-d64849d13a8e

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":null
  4. }

    • Related Articles

    • Ordenes de compra (Purchase Orders)

      Obtener lista de ordenes de compra Este endpoint requiere autenticación GET /webapi/purchaseorders?skip=0&maxRecords=10 Respuesta Esperada: {     "status":"ok",     "data":     [         {             "ID":"d40b316e-1114-4643-a04b-50ab3f2376a9",     ...