Get order

GET/orders/{orderId}

Use it to get order

Headers

  • x-api-keystringrequired

    Api key provided on integrations tab in Easyflow platform.

  • x-api-secretstringrequired

    Api Secret provided on integrations tab in Easyflow platform.

  • business-idstringrequired

    Business Identifier

Path parameters

  • orderIdstringrequired

Responses

200returns the details of a order

returns the details of a order

Content typeapplication/jsonobject

  • statusCodeinteger

    Example:200

  • dataobject
    Show child attributesHide child attributes
    • idstring
    • datestring
    • paidAtstring
    • statusstring

      Possible values:pendingpaidpartially-paidcanceledreversedrefundedcharged-backawating-payment

    • orderBuyerobject
      Show child attributesHide child attributes
      • namestring
      • emailstring
      • phoneobject
        Show child attributesHide child attributes
        • areaCodestring
        • dddstring
        • numberstring
        • isMobileboolean
      • addressobject
        Show child attributesHide child attributes
        • zipCodestringnullable
        • streetstringnullable
        • numberstringnullable
        • complementstringnullable
        • neighborhoodstringnullable
        • citystringnullable
        • statestringnullable
      • documentobject
        Show child attributesHide child attributes
        • typestring
        • numberstring
      • deliveryAddressobject
        Show child attributesHide child attributes
        • zipCodestringnullable
        • streetstringnullable
        • numberstringnullable
        • complementstringnullable
        • neighborhoodstringnullable
        • citystringnullable
        • statestringnullable
    • couponobject
      Show child attributesHide child attributes
      • codestringnullable
      • totalDiscountValueInCentsinteger
      • percentageinteger
      • valueInCentsinteger
    • itemsarray of objects
      Show child attributesHide child attributes
      • idstring
      • orderIdstring
      • productobject
        Show child attributesHide child attributes
        • idstring
        • namestring
        • imageobject
          Show child attributesHide child attributes
          • namestring
          • pathstring
          • urlstring
          • isPublicboolean
          • extensionstring
      • unitValueInCentsinteger
      • quantityinteger
      • subscriptionobject
        Show child attributesHide child attributes
        • idstring
        • namestring
        • expirationstringnullable
        • periodicitystring

          Possible values:MonthlyQuarterlyBiannualyAnnualy

        • numberRecurrencesinteger
        • statusstring

          Possible values:activeinactivecanceledexpired

        • recurrenceValueInCentsinteger
        • paymentMethodstring

          Possible values:credit-cardpixbank-billetcryptodebit-cardtransfer

        • repeatIndefinitelyboolean
        • recurrencesarray of objects
          Show child attributesHide child attributes
          • billingDatestring
          • dueDatestring
          • paidAtstringnullable
          • recurrenceValueInCentsinteger
          • statusstring

            Possible values:pendingchargeddelayedfailedpaidcanceledrefunded

          • recurrenceinteger
    • paymentsarray of objects
      Show child attributesHide child attributes
      • paymentobject
        Show child attributesHide child attributes
        • idstring
        • statusstring

          Possible values:pendingin-processingauthorizedpaidpartially-paidrefusedabortedcanceledcharged-backchargeback-in-disputeunpaidaccepteddeniedreversedrefunded

        • valuePaidInCentsinteger
        • externalIdstringnullable
        • fineValueInCentsinteger
        • installmentsinteger
        • interestValueInCentsinteger
        • paymentMethodstring

          Possible values:credit-cardpixbank-billetcryptodebit-cardtransfer

        • statusHistoryarray of objects
          Show child attributesHide child attributes
          • idstring
          • statusstring

            Possible values:pendingin-processingauthorizedpaidpartially-paidrefusedabortedcanceledcharged-backchargeback-in-disputeunpaidaccepteddeniedreversedrefunded

          • datestring
        • valueInCentsinteger
        • creditCardobject

          Card data. The fields are present only when the payment was made with a card.

          Show child attributesHide child attributes
          • nicknamestring
          • last4Numbersstring
          • holderNamestring
          • expiresAtMonthinteger
          • expiresAtYearinteger
          • flagstring

            Possible values:visamastercardamerican-expressdiners-clubdiscoverjcbunionpaymaestromirelohiperhipercard

    • statusHistoryarray of objects
      Show child attributesHide child attributes
      • idstring
      • statusstring

        Possible values:pendingpaidpartially-paidcanceledreversedrefundedcharged-backawating-payment

      • datestring
    • taxesarray of objects

      Tax items of the order. They are listed here and not in items.

      Show child attributesHide child attributes
      • idstring
      • namestring
      • descriptionstring
      • unitValueInCentsinteger
    • paymentTaxesarray of objects

      Taxes applied to each payment of the order.

      Show child attributesHide child attributes
      • paymentIdstring
      • taxesarray of objects
        Show child attributesHide child attributes
        • taxNamestring
        • totalValueInCentsinteger
        • payerstring

          Possible values:buyersellerplatformcoproduceraffiliateother

        • percentagenumber
400If the provided parameter is invalid, the API will return the following error response:

If the provided parameter is invalid, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid param: []

    Example:Invalid param: []

  • errorstring

    Bad Request

    Example:Bad Request

  • statusCodeinteger

    400

    Example:400

  • errorCodestring

    Code that identifies the error. Present only on some errors.

401If the request is unauthorized, the API will return the following error response:

If the request is unauthorized, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid field

    Example:Unauthorized

  • errorstring

    Unauthorized

    Example:Unauthorized

  • statusCodeinteger

    401

    Example:401

403If the request is forbidden, the API will return the following error response:

If the request is forbidden, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Forbidden resource

    Example:Forbidden resource

  • errorstring

    Forbidden

    Example:Forbidden

  • statusCodeinteger

    403

    Example:403

500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

Content typeapplication/jsonobject

  • statusCodeinteger

    HTTP status code.

    Example:500

  • messagestring

    Explanation of the error.

    Example:Internal Server Error