Factura externa
Última actualización
Última actualización
Es la entidad que sirve para generar alternativas de pago a registros que no son un pedido en Goshop. y fueron generados desde una ERP
GET
https://tiendagoshop.com/api/v1/invoices
Name | Type | Description |
---|---|---|
[
{
"id": 23,
"external_id": 59746,
"document": 1100046812,
"date": "04/05/2023",
"spree_users_id": 697,
"total": "405507.0",
"pending": "0.0",
"currency": "DOP",
"status": "Pagada",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 31,
"external_id": 59809,
"document": 1100046872,
"date": "05/05/2023",
"spree_users_id": 697,
"total": "143016.0",
"pending": "143016.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 32,
"external_id": 59814,
"document": 1100046877,
"date": "05/05/2023",
"spree_users_id": 697,
"total": "95344.0",
"pending": "95344.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 33,
"external_id": 59816,
"document": 1100046879,
"date": "05/05/2023",
"spree_users_id": 697,
"total": "71508.0",
"pending": "71508.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 34,
"external_id": 59836,
"document": 1100046899,
"date": "06/05/2023",
"spree_users_id": 697,
"total": "238360.0",
"pending": "238360.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 35,
"external_id": 59584,
"document": 1100046657,
"date": "29/04/2023",
"spree_users_id": 697,
"total": "394592.0",
"pending": "394592.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 36,
"external_id": 59625,
"document": 1100046697,
"date": "02/05/2023",
"spree_users_id": 697,
"total": "238360.0",
"pending": "178735.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 37,
"external_id": 59629,
"document": 1100046701,
"date": "02/05/2023",
"spree_users_id": 697,
"total": "394592.0",
"pending": "370507.97",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 39,
"external_id": 59735,
"document": 1100046802,
"date": "04/05/2023",
"spree_users_id": 697,
"total": "251104.0",
"pending": "251104.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 62,
"external_id": 36475,
"document": 1100024206,
"date": "14/08/2021",
"spree_users_id": 2377,
"total": "75520.0",
"pending": "26988.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 63,
"external_id": 37044,
"document": 1100024758,
"date": "30/08/2021",
"spree_users_id": 1543,
"total": "4153.6",
"pending": "149.37",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 64,
"external_id": 40943,
"document": 1100028548,
"date": "08/12/2021",
"spree_users_id": 2465,
"total": "6277.6",
"pending": "3084.52",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 65,
"external_id": 41287,
"document": 1100028883,
"date": "17/12/2021",
"spree_users_id": 2566,
"total": "5465.76",
"pending": "5465.76",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 66,
"external_id": 43057,
"document": 1100030583,
"date": "10/02/2022",
"spree_users_id": 5574,
"total": "1691711.15",
"pending": "1441711.15",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 67,
"external_id": 43072,
"document": 1100030596,
"date": "10/02/2022",
"spree_users_id": 2367,
"total": "104217.6",
"pending": "29153.83",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 68,
"external_id": 43232,
"document": 1100030754,
"date": "15/02/2022",
"spree_users_id": 2475,
"total": "1675.6",
"pending": "1675.6",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 28,
"external_id": 59680,
"document": 1100046748,
"date": "03/05/2023",
"spree_users_id": 697,
"total": "394592.0",
"pending": "394592.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 40,
"external_id": 59738,
"document": 1100046805,
"date": "04/05/2023",
"spree_users_id": 697,
"total": "573995.66",
"pending": "573995.66",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 69,
"external_id": 43438,
"document": 1100030958,
"date": "21/02/2022",
"spree_users_id": 2475,
"total": "11965.2",
"pending": "11965.2",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 70,
"external_id": 43606,
"document": 1100031124,
"date": "24/02/2022",
"spree_users_id": 2475,
"total": "13829.6",
"pending": "13829.6",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 71,
"external_id": 43983,
"document": 1100031497,
"date": "07/03/2022",
"spree_users_id": 5574,
"total": "11805.0",
"pending": "11805.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 72,
"external_id": 44088,
"document": 1100031602,
"date": "10/03/2022",
"spree_users_id": 2475,
"total": "3658.0",
"pending": "3658.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
},
{
"id": 29,
"external_id": 59783,
"document": 1100046846,
"date": "05/05/2023",
"spree_users_id": 697,
"total": "394592.0",
"pending": "0.0",
"currency": "DOP",
"status": "Pagada",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 24,
"external_id": 59838,
"document": 1100046901,
"date": "06/05/2023",
"spree_users_id": 697,
"total": "119180.0",
"pending": "119180.0",
"currency": "DOP",
"status": "Pendiente",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023"
},
{
"id": 73,
"external_id": 44215,
"document": 1100031729,
"date": "14/03/2022",
"spree_users_id": 2475,
"total": "28209.08",
"pending": "28209.08",
"currency": "DOP",
"status": "Pendiente",
"entity": "NCFA",
"notes": null,
"created_at": "10/08/2023"
}
]
GET
https://tiendagoshop.com/api/v1/invoices/:id
{
"id": 23,
"external_id": 59746,
"document": 1100046812,
"date": "04/05/2023",
"spree_users_id": 697,
"total": "405507.0",
"pending": "0.0",
"currency": "DOP",
"status": "Pagada",
"entity": "CFiscal",
"notes": null,
"created_at": "13/07/2023",
"invoice_items": [
{
"id": 51,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":1640.0,\"UnitPrice\":190.0,\"LineTotal\":311600.0,\"LineTotalWithTax\":367688.0}"
},
{
"id": 52,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00092\",\"Description\":\"EUROJUNTA F ARENA 5 KGS\",\"Quantity\":50.0,\"UnitPrice\":185.0,\"LineTotal\":9250.0,\"LineTotalWithTax\":10915.0}"
},
{
"id": 53,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":120.0,\"UnitPrice\":190.0,\"LineTotal\":22800.0,\"LineTotalWithTax\":26904.0}"
},
{
"id": 92,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":1640.0,\"UnitPrice\":190.0,\"LineTotal\":311600.0,\"LineTotalWithTax\":367688.0}"
},
{
"id": 93,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00092\",\"Description\":\"EUROJUNTA F ARENA 5 KGS\",\"Quantity\":50.0,\"UnitPrice\":185.0,\"LineTotal\":9250.0,\"LineTotalWithTax\":10915.0}"
},
{
"id": 94,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":120.0,\"UnitPrice\":190.0,\"LineTotal\":22800.0,\"LineTotalWithTax\":26904.0}"
},
{
"id": 103,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":1640.0,\"UnitPrice\":190.0,\"LineTotal\":311600.0,\"LineTotalWithTax\":367688.0}"
},
{
"id": 104,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00092\",\"Description\":\"EUROJUNTA F ARENA 5 KGS\",\"Quantity\":50.0,\"UnitPrice\":185.0,\"LineTotal\":9250.0,\"LineTotalWithTax\":10915.0}"
},
{
"id": 105,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":120.0,\"UnitPrice\":190.0,\"LineTotal\":22800.0,\"LineTotalWithTax\":26904.0}"
},
{
"id": 142,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":1640.0,\"UnitPrice\":190.0,\"LineTotal\":311600.0,\"LineTotalWithTax\":367688.0}"
},
{
"id": 143,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00092\",\"Description\":\"EUROJUNTA F ARENA 5 KGS\",\"Quantity\":50.0,\"UnitPrice\":185.0,\"LineTotal\":9250.0,\"LineTotalWithTax\":10915.0}"
},
{
"id": 144,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":120.0,\"UnitPrice\":190.0,\"LineTotal\":22800.0,\"LineTotalWithTax\":26904.0}"
},
{
"id": 5992,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":1640.0,\"UnitPrice\":190.0,\"LineTotal\":311600.0,\"LineTotalWithTax\":367688.0}"
},
{
"id": 5993,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00092\",\"Description\":\"EUROJUNTA F ARENA 5 KGS\",\"Quantity\":50.0,\"UnitPrice\":185.0,\"LineTotal\":9250.0,\"LineTotalWithTax\":10915.0}"
},
{
"id": 5994,
"external_id": 59746,
"quantity": 59746,
"unit_price": 59746,
"line_total": 59746,
"line_total_with_tax": 59746,
"bulk_data": "{\"DocEntry\":59746,\"ProductCode\":\"PT00073\",\"Description\":\"PEGACOL GRIS 22.68 KGS\",\"Quantity\":120.0,\"UnitPrice\":190.0,\"LineTotal\":22800.0,\"LineTotalWithTax\":26904.0}"
}
]
}
DELETE
https://tiendagoshop.com/api/v1/invoices/:id
POST
https://tiendagoshop.com/api/v1/invoices/
// Ejemplo request.
{
"order": {
"state": "cart",
"adjustment_total": 20,
"user_id": "1",
"completed_at": "2022-04-04 08:45:30 UTC",
"approver_id": "string",
"approved_at": "2022-02-22 08:45:30 UTC",
"bill_address_attributes": {
"firstname": "John",
"lastname": "Doe",
"address1": "7735 Old Georgetown Road",
"city": "Bethesda",
"phone": "3014445002",
"state_id": 1,
"country_id": 1
},
"ship_address_attributes": {
"firstname": "John",
"lastname": "Doe",
"address1": "7735 Old Georgetown Road",
"city": "Bethesda",
"phone": "3014445002",
"state_id": 1,
"country_id": 1
},
"email": "hi@getvendo.com",
"special_instructions": "Necesito que envien en horario nocturno. Gracias.",
"currency": "DOP",
"created_by_id": "7777",
"channel": "API Goshop",
"line_items": [
{ "variant_id": 509, "quantity": 1 }
]
}
}
// Ejemplo response
{
"id": 357,
"number": "R557006856",
"item_total": "1000.0",
"total": "1000.0",
"ship_total": "0.0",
"state": "cart",
"adjustment_total": "0.0",
"user_id": 1,
"created_at": "2022-04-05T01:05:28.857-04:00",
"updated_at": "2022-04-05T01:05:32.755-04:00",
"completed_at": "2022-04-04T04:45:30.000-04:00",
"payment_total": "0.0",
"shipment_state": "pending",
"payment_state": "balance_due",
"email": "hi@getvendo.com",
"special_instructions": "Necesito que envien en horario nocturno. Gracias.",
"channel": "API Goshop",
"included_tax_total": "152.54",
"additional_tax_total": "0.0",
"display_included_tax_total": "RD$ 152.54",
"display_additional_tax_total": "RD$ 0.00",
"tax_total": "152.54",
"currency": "DOP",
"considered_risky": false,
"canceler_id": null,
"display_item_total": "RD$ 1,000.00",
"total_quantity": "1.0",
"display_total": "RD$ 1,000.00",
"display_ship_total": "RD$ 0.00",
"display_tax_total": "RD$ 152.54",
"display_adjustment_total": "RD$ 0.00",
"token": "9cl81pc1q3Z8Ysj4iMOgdA1649135128857",
"checkout_steps": [
"address",
"delivery",
"payment",
"complete"
],
"bill_address": {
"id": 1733,
"firstname": "John",
"lastname": "Doe",
"full_name": "John Doe",
"address1": "7735 Old Georgetown Road",
"address2": null,
"city": "Bethesda",
"zipcode": null,
"phone": "3014445002",
"company": null,
"alternative_phone": null,
"country_id": 1,
"state_id": 1,
"label": null,
"state_name": null,
"state_text": "01",
"address_type": null,
"rnc": null,
"fiscal_type": null,
"last_used": null,
"geo_address": null,
"geo_lat": null,
"geo_lng": null,
"user_id": null,
"country": {
"id": 1,
"iso_name": "DOMINICAN REPUBLIC",
"iso": "DO",
"iso3": "DOM",
"name": "Dominican Republic",
"numcode": 214
},
"state": {
"id": 1,
"name": "Distrito Nacional (Santo Domingo)",
"abbr": "01",
"country_id": 1
}
},
"ship_address": {
"id": 1733,
"firstname": "John",
"lastname": "Doe",
"full_name": "John Doe",
"address1": "7735 Old Georgetown Road",
"address2": null,
"city": "Bethesda",
"zipcode": null,
"phone": "3014445002",
"company": null,
"alternative_phone": null,
"country_id": 1,
"state_id": 1,
"label": null,
"state_name": null,
"state_text": "01",
"address_type": null,
"rnc": null,
"fiscal_type": null,
"last_used": null,
"geo_address": null,
"geo_lat": null,
"geo_lng": null,
"user_id": null,
"country": {
"id": 1,
"iso_name": "DOMINICAN REPUBLIC",
"iso": "DO",
"iso3": "DOM",
"name": "Dominican Republic",
"numcode": 214
},
"state": {
"id": 1,
"name": "Distrito Nacional (Santo Domingo)",
"abbr": "01",
"country_id": 1
}
},
"line_items": [
{
"id": 559,
"quantity": "1.0",
"price": "1000.0",
"variant_id": 509,
"variant": {
"product_id": 434,
"id": 509,
"name": "Peluche p/ perros",
"sku": "8989",
"price": "1000.0",
"weight": "1.0",
"height": null,
"width": null,
"depth": null,
"is_master": true,
"slug": "pollo-de-corral",
"description": "",
"track_inventory": true,
"cost_price": "1250.0",
"gd_size_reference": "document",
"decimal_quantity_step": "1.0",
"option_values": [],
"images": [
{
"id": 247,
"position": 1,
"attachment_content_type": null,
"attachment_file_name": null,
"type": null,
"attachment_updated_at": null,
"attachment_width": null,
"attachment_height": null,
"alt": null,
"viewable_type": "Spree::Variant",
"viewable_id": 509,
"mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWdzME9IZzBPRDRHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--2f1b2cae634146e891b3c296278cd9d1548a7afd/petmarket.jpeg",
"small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweE1EQjRNVEF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--6b13ad18266c7375177a3c77e3075750ba2ffcc0/petmarket.jpeg",
"product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweU5EQjRNalF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--0dca4744e165205c4e78d1faa31afdc856bed168/petmarket.jpeg",
"large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcwMk1EQjROakF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--27fe3250808b0a95142813596859c3f064cf5966/petmarket.jpeg"
},
{
"id": 248,
"position": 2,
"attachment_content_type": null,
"attachment_file_name": null,
"type": null,
"attachment_updated_at": null,
"attachment_width": null,
"attachment_height": null,
"alt": null,
"viewable_type": "Spree::Variant",
"viewable_id": 509,
"mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpQ3pRNGVEUTRQZ1k3QmxRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--7b28929397790ee66b7cc4c7f09b8a5afc2f8498/petmarket31.png",
"small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRFd01IZ3hNREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--63f162083ed317c256ddb1068727755a332b26c5/petmarket31.png",
"product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRJME1IZ3lOREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--44c4c36e97ceca3fb66796bbf810402e688122c1/petmarket31.png",
"large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRZd01IZzJNREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--ffc144c7539038c8d24daab34ce2b2c2712710e1/petmarket31.png"
},
{
"id": 249,
"position": 3,
"attachment_content_type": null,
"attachment_file_name": null,
"type": null,
"attachment_updated_at": null,
"attachment_width": null,
"attachment_height": null,
"alt": null,
"viewable_type": "Spree::Variant",
"viewable_id": 509,
"mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWdzME9IZzBPRDRHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--2f1b2cae634146e891b3c296278cd9d1548a7afd/petmarket1.jpeg",
"small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweE1EQjRNVEF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--6b13ad18266c7375177a3c77e3075750ba2ffcc0/petmarket1.jpeg",
"product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweU5EQjRNalF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--0dca4744e165205c4e78d1faa31afdc856bed168/petmarket1.jpeg",
"large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcwMk1EQjROakF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--27fe3250808b0a95142813596859c3f064cf5966/petmarket1.jpeg"
}
],
"display_price": "RD$ 1,000.00",
"options_text": "",
"in_stock": true,
"is_backorderable": false,
"is_orderable": true,
"total_on_hand": "129.0",
"is_destroyed": false
},
"adjustments": [
{
"id": 3724,
"source_type": "Spree::TaxRate",
"source_id": 1,
"adjustable_type": "Spree::LineItem",
"adjustable_id": 559,
"amount": "152.54",
"label": "ITBIS 18% (incluido)",
"mandatory": null,
"eligible": true,
"created_at": "2022-04-05T01:05:29.869-04:00",
"updated_at": "2022-04-05T01:05:31.450-04:00",
"display_amount": "RD$ 152.54"
}
],
"single_display_amount": "RD$ 1,000.00",
"display_amount": "RD$ 1,000.00",
"total": "1000.0"
}
],
"payments": [],
"shipments": [
{
"id": 795,
"tracking": null,
"number": "H24509462815",
"cost": "0.0",
"shipped_at": null,
"state": "pending",
"shipping_rates": [
{
"id": 2248,
"name": "Lista de regalos",
"cost": "0.0",
"selected": true,
"shipping_method_id": 2,
"shipping_method_code": "giftregistry",
"display_cost": "RD$ 0.00"
}
],
"selected_shipping_rate": {
"id": 2248,
"name": "Lista de regalos",
"cost": "0.0",
"selected": true,
"shipping_method_id": 2,
"shipping_method_code": "giftregistry",
"display_cost": "RD$ 0.00"
},
"shipping_methods": [
{
"id": 2,
"code": "giftregistry",
"name": "Lista de regalos",
"zones": [
{
"id": 1,
"name": "República Dominicana",
"description": ""
},
{
"id": 2,
"name": "Venezuela",
"description": "Venezuela"
}
],
"shipping_categories": [
{
"id": 1,
"name": "Estándar"
},
{
"id": 2,
"name": "Zoom"
}
]
}
],
"manifest": [
{
"variant_id": 509,
"quantity": "1.0",
"states": {
"on_hand": "1.0"
}
}
],
"adjustments": [],
"order_id": "R557006856",
"stock_location_name": "Almacen 3"
}
],
"adjustments": [],
"credit_cards": [],
"permissions": {
"can_update": true
},
"customer_invoice_url": null
}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
X-Spree-Token
string
Token generado desde el CMS de GS
id
integer
id de la factura
X-Spree-Token
string
Token generado desde el CMS de GS
id
string
id de la factura
X-Spree-Token
string
Token generado desde el CMS de GS
X-Spree-Token*
String
Token generado desde el CMS de GS
external_id*
String
id del registro en la ERP
document
Timestamp
identificador del registro en la ERP
date
String
fecha de la factura
spree_users_id
String
id del cliente en goshop
total*
Hash
monto total de la factura
pending*
Hash
monto pendiente a pagar
currency*
String
moneda.
status
String
estado de la factura
entity*
String
entidad
notes*
String
notas adicionales
invoice_items*
Hash de objetoss
Hash con los item de la factura Ej. [ { "id": 51, "external_id": 59746, "quantity": 59746, "unit_price": 59746, "line_total": 59746, "line_total_with_tax": 59746, "bulk_data": "{"DocEntry":59746,"ProductCode":"PT00073","Description":"PEGACOL GRIS 22.68 KGS","Quantity":1640.0,"UnitPrice":190.0,"LineTotal":311600.0,"LineTotalWithTax":367688.0}" }, ]