Skip to content

Instantly share code, notes, and snippets.

@fdorantesm
Created February 22, 2026 07:02
Show Gist options
  • Select an option

  • Save fdorantesm/052af44c9ce8ff68213714cc09f7245e to your computer and use it in GitHub Desktop.

Select an option

Save fdorantesm/052af44c9ce8ff68213714cc09f7245e to your computer and use it in GitHub Desktop.
BC Catalogs – Event Payloads (Bruno)

BC Catalogs – Event Payloads

Generated: 2026-02-22

Catálogos Internos

Get Series

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-series.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get SubCategorías de Catálogos

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.invoice-sub-types.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Taxes

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-taxes.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Tipo de factura

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.invoice-types.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Tipo de ingreso

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-payment-invoice.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Tipo tax

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-type-tax.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Tipos de documentos

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-documents-type.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get clase de operación de factura

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-invoice-operation-class.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update Series

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-series.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update Tipo de ingreso

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-payment-invoice.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update invoice operation class

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-invoice-operation-class.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update invoice sub-types

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.invoice-sub-types.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update taxes

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-taxes.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos SANSA

Catálogos Sansa - Pasajeros

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-passengers.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos Sansa - cat_sansa_airplanes

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-airplanes.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos Sansa - cat_sansa_destinities

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-destinities.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos Sansa - cat_sansa_rates

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-rates.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos Sansa - cat_sansa_tripulations

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-tripulations.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update sansa airplanes

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-sansa-airplanes.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Catálogos SAT

Create Clave unidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-claveunidad-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Clave unidad Subsidiary

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-clave-unidad.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Forma de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-formapago-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Meses

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-meses-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Método de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-metodopago-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Moneda SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-moneda-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Motivo de cancelación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-motivocancelacion-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Paises SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-catalogo-paises-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Periodicidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-periodicidad-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Productos y Servicios

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Regimen Fiscal uso de CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Regimen fiscal

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Relación Forma de pago Subsidiaria

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-formapago.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Tipo relación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-tiporelacion-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create Uso CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-usocfdi-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Create metodo de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-metodopago-sat.create.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Forma de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-formapago-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Meses

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-meses-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Método de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-metodopago-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Moneda SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-moneda-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Motivo de cancelación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-motivocancelacion-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Paises SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-catalogo-paises-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Periodicidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-periodicidad-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Subsidiary Forma de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-formapago.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Subsidiary Método de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-formapago.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Subsidiary Motivo Cancelación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-motivocancelacion.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

GET Uso CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-usocfdi-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Catalogs SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Clave unidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-claveunidad-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Clave unidad Subsidiary

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-clave-unidad.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Clave unidad Subsidiary 2

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-clave-unidad.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Productos y Servicios

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Regimen Fiscal uso de CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Regimen fiscal

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-tiporelacion-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Tipo relación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-tiporelacion-sat.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get subsidiary moneda

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-clave-unidad.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

UPDATE Subsidiary Método de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-formapago.search.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update Clave unidad Subsidiary

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.subsidiary-clave-unidad.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update clave unidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-claveunidad-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update forma de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-formapago-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update meses

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-meses-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update método de pago

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-metodopago-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update moneda sat

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-moneda-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update motivo de cancelación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-motivocancelacion-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update paises SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-catalogo-paises-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update periodicidad

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-periodicidad-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update productos y servicios

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-productos-servicios-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update regimen fiscal

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-tiporelacion-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update regimen fiscal uso de CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update tipo relación

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-tiporelacion-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Update uso CFDI

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.cat-usocfdi-sat.update.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }  
}

script:post-response {
  if (res.body?.transaction?.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body?.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Catálogos Internos

Get Catálogos Internos

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Catálogos SANSA

Get Catálogos SANSA

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}

Get Catálogos SAT

Get Catálogos SAT

meta {
  name: Event
  type: http
  seq: 2
}

post {
  url: {{HOST}}/action
  body: json
  auth: inherit
}

body:json {
  {
    "event": "billing-collect.catalogs.get-by.in",
    "context": {
      "subsidiary_name": "NACIONAL"
    },
    "data": "{{DATA}}",
    "tag": "{{TAG}}"
  }
}

script:post-response {
  if (res.body.transaction.tag) {
    bru.setEnvVar("RES_TAG", res.body.transaction.tag)
  }
  
  if (res.body.response && res.body.error == "") {
    bru.setEnvVar("RES_DATA", res.body.response)
  }
}

settings {
  encodeUrl: true
  timeout: 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment