PUT
/
{alias}
/
orders
/
{orderId}
/
invoices
/
{invoiceId}
curl --request PUT \
  --url https://api.dooki.com.br/v2/{alias}/orders/{orderId}/invoices/{invoiceId} \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "series": "000",
  "number": "000",
  "key": "000",
  "date": "2018-01-01",
  "value": "99.99",
  "products_value": "79.99",
  "url": "https://url.com",
  "cfop": "cfop",
  "force_invoiced_status": "true"
}'
{
  "data": [
    {
      "id": 123,
      "merchant_id": 123,
      "order_id": 123,
      "series": "<string>",
      "number": "<string>",
      "key": "<string>",
      "date": "2023-11-07T05:31:56Z",
      "value": 123,
      "products_value": 123,
      "cfop": "<string>",
      "url": "<string>",
      "created_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      },
      "updated_at": {
        "date": "2000-08-17 10:24:24",
        "timezone_type": 3,
        "timezone": "America/Sao_Paulo"
      }
    }
  ]
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

orderId
integer
required

ID do pedido

invoiceId
integer
required

ID da nota fiscal

Body

application/json

Detalhes da nota fiscal

Representa os dados para criar uma nota fiscal de um pedido

Response

200
application/json

Nota fiscal atualizada com sucesso

The response is of type object.