Reconstruye el Webhook Messenger nativo de SAP B1 (FP2605) para clientes que aun no estan en esa version: captura eventos via SBO_SP_PostTransactionNotice, provisiona UserTables OEVC/EVC1/OEVN/EVN1 y despacha CloudEvents al mismo endpoint que el messenger real. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
51 lines
1.1 KiB
HTTP
51 lines
1.1 KiB
HTTP
@url=https://hw-cloud-su2.dot-solutions.cloud:50000/b1s/v1
|
|
|
|
|
|
###
|
|
# @no-reject-unauthorized
|
|
POST {{url}}/Login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"CompanyDB": "SBOTSTLIBROS",
|
|
"UserName": "dot-solutions\\dot.zmarcano",
|
|
"Password": "<SL_PASSWORD>"
|
|
}
|
|
|
|
###
|
|
# @no-reject-unauthorized
|
|
|
|
GET {{url}}/PurchaseDeliveryNotes?$select=DocEntry,DocNum,DocCurrency,DocDate,CardCode,CardName,&$filter=CardCode eq '93250000-0P'and DocumentStatus eq 'bost_Open' and DocType eq 'dDocument_Items'
|
|
|
|
###
|
|
# @no-reject-unauthorized
|
|
|
|
GET {{url}}/PurchaseDeliveryNotes(4020)
|
|
|
|
###
|
|
# @no-reject-unauthorized
|
|
|
|
POST {{url}}/PurchaseReturns
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"DocType": "dDocument_Items",
|
|
"CardCode": "93250000-0P",
|
|
"DocDate": "2026-09-09T00:00:00Z",
|
|
"DocCurrency": "CLP",
|
|
"DocumentLines":[
|
|
{
|
|
"BaseType":20,
|
|
"BaseEntry":477,
|
|
"BaseLine":0,
|
|
"Quantity":1
|
|
},
|
|
{
|
|
"BaseType":20,
|
|
"BaseEntry":4020,
|
|
"BaseLine":0,
|
|
"Quantity":2
|
|
}
|
|
]
|
|
|
|
} |