NAV

updateInvoiceStatus

POST /invoice/update_status

This endpoint allows the developer to access the API in order to update invoice status.

Parameters
Name
Description
uuid string (optional)

Unique invoice code created by SimplePin.

invoice_id string (optional)

Unique invoice number previously created using addInvoice end-point. Normally the same invoice number created by your system.

invoiceStatus (required)

This is the data required in order to update an invoice.

Response Messages
Code
Description
200
OK
201
Created
401
Unauthorized
403
Forbidden
404
Not Found
             {
    "status": "DRAFT",
    "sent": true
}
             
          
{ } InvoiceStatusModel
status optional string
sent optional boolean
             {
    "result_message": "string",
    "url": "string",
    "uuid": "string"
}
             
          
{ } UpdateInvoiceResultModel
result_message optional string
url optional string
uuid optional string
             <invoice_status_model>
  <status>DRAFT</status>
  <sent>1</sent>
</invoice_status_model>

             
          
{ } InvoiceStatusModel
status optional string
sent optional boolean
             <update_invoice_result_model>
  <result_message>string</result_message>
  <url>string</url>
  <uuid>string</uuid>
</update_invoice_result_model>

             
          
{ } UpdateInvoiceResultModel
result_message optional string
url optional string
uuid optional string