cancelarOrden

Cancela el pedido y notifica a Shopify

GET /cancelarorden

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 200: OK
  • 404: Not Found

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body


                                            

POST /cancelarorden

Recibe la petición de cancelación

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json
Content-Type
application/vnd.el-globo.v1+json
application/json
Authorization HTTP Basic, HTTP Digest, or OAuth2 Bearer token (check API provider for details)

Body

{
   "order_num": "Número de orden de Shopify"
}

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 201: Created
  • 404: Not Found
  • 400: Client Error
  • 422: Unprocessable Entity
  • 401: Unauthorized
  • 403: Forbidden

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body

{"response":true,"message":"orden NUMERO_ORDEN cancelada correctamente"}

confirmarOrden

Confirmación de pedido

GET /confirmarorden

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES
total Float

Total de la orden confirmada

YES
productos JSON String

JSON con Items de producto confirmados

YES
cabecera_ticket String

Cabecera del ticket

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 200: OK
  • 404: Not Found

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body


                                            

POST /confirmarorden

Recibe la confirmación de pedido del Globo

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES
total Float

Total de la orden confirmada

YES
productos JSON String

JSON con Items de producto confirmados

YES
cabecera_ticket String

Cabecera del ticket

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json
Content-Type
application/vnd.el-globo.v1+json
application/json
Authorization HTTP Basic, HTTP Digest, or OAuth2 Bearer token (check API provider for details)

Body

{
   "order_num": "Número de orden de Shopify",
   "total": "Total de la orden confirmada",
   "productos": "JSON con Items de producto confirmados",
   "cabecera_ticket": "Cabecera del ticket"
}

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 201: Created
  • 404: Not Found
  • 400: Client Error
  • 422: Unprocessable Entity
  • 401: Unauthorized
  • 403: Forbidden

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body

{"response":true,"message":"Datos de confirmaci\u00f3n de pedido NUMERO_PEDIDO recibidos correctamente"}

reembolsoParcial

WebService para reembolso parcial de pedido

GET /reembolsoparcial

Reembolso parcial de pedido

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES
productos JSON String

JSON con Items de producto a reembolsar

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 200: OK
  • 404: Not Found

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body

{
   "order_num": "Número de orden de Shopify",
   "productos": "JSON con Items de producto a reembolsar"
}

POST /reembolsoparcial

Fields

Field Type Description Required
order_num String

Número de orden de Shopify

YES
productos JSON String

JSON con Items de producto a reembolsar

YES

Request

Headers

Header Value
Accept
application/vnd.el-globo.v1+json
application/json
application/*+json
Content-Type
application/vnd.el-globo.v1+json
application/json
Authorization HTTP Basic, HTTP Digest, or OAuth2 Bearer token (check API provider for details)

Body


                                            

Response

Status Codes

  • 406: Not Acceptable
  • 415: Unsupported Media Type
  • 201: Created
  • 404: Not Found
  • 400: Client Error
  • 422: Unprocessable Entity
  • 401: Unauthorized
  • 403: Forbidden

Headers

Header Value
Content-Type
application/vnd.el-globo.v1+json
application/json
application/*+json
Allow Comma-separated list of all HTTP methods allowed

Body