GetOutgoingLogPayload API

InsurGateway, bildirim tipi 3 ile platforma ilettiği outgoing log gövdelerini ileride bu endpoint üzerinden geri ister.

Endpoint

AlanDeğer
HTTP MethodPOST
Path/GetOutgoingLogPayload
Content-Typeapplication/json

Header’lar

Content-Type: application/json
x-api-key: <platform tarafından üretilen API key>
Authorization: <opsiyonel; platform tarafından bildirildiyse>

Request Yapısı

1{
2 "ReferanceNo": "string",
3 "SubReferanceNo": "string",
4 "RequestKeyValueSet": null,
5 "RequestObject": {
6 "LogID": 987654,
7 "GwLogId": "6635f2c7c1d2b8a1f0a12b34",
8 "IsResponse": false
9 }
10}
AlanTipJSON AdıAçıklama
ReferanceNostringBu çağrı için iş referans numarası.
SubReferanceNostring~30 karakterlik benzersiz alt referans.
RequestKeyValueSetKullanılmaz.
LogIdlong?LogIDBildirim tipi 3 payload’ındaki OutgoingRequestLogID değeri.
GwLogIdstringGwLogIdBildirim tipi 3 payload’ındaki GwLogId değeri.
IsResponsebool?IsResponsefalse: DataSent. true: DataReceived.

JSON alan adı LogID (büyük D) olarak gönderilir; parse sırasında dikkat edilmelidir.


Response Yapısı

Platformun döneceği cevap, HTTP 200 OK ile aşağıdaki yapıda olmalıdır:

1{
2 "ResultStatus": {
3 "Status": "Success",
4 "Explanation": null
5 },
6 "Result": {
7 "LogID": 987654,
8 "Payload": "<request veya response gövdesi>"
9 }
10}
AlanJSON AdıAçıklama
ResultStatus.StatusStatusYalnızca "Success" başarılı kabul edilir.
ResultStatus.ExplanationExplanationHata açıklaması.
Result.LogIdLogIDİstekteki LogID değerinin aynısı döndürülür.
Result.PayloadPayloadIsResponse=falseDataSent; trueDataReceived.

Tam Örnek

İstek:

1POST /insurgw/GetOutgoingLogPayload HTTP/1.1
2Host: platform.ornek.com.tr
3Content-Type: application/json
4x-api-key: 9f3c1e8a-2b4d-1234-5678-deadbeefcafe
5
6{
7 "ReferanceNo": "0_12345_QUERY_20260510153000_2",
8 "SubReferanceNo": "queryref-9f8e7d6c5b4a3210fedcba9876",
9 "RequestKeyValueSet": null,
10 "RequestObject": {
11 "LogID": 987654,
12 "GwLogId": "6635f2c7c1d2b8a1f0a12b34",
13 "IsResponse": true
14 }
15}

Başarılı cevap:

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5 "ResultStatus": { "Status": "Success", "Explanation": null },
6 "Result": {
7 "LogID": 987654,
8 "Payload": "<response><PolicyNo>123456</PolicyNo>...</response>"
9 }
10}

Hata cevabı:

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5 "ResultStatus": { "Status": "Error", "Explanation": "Log bulunamadı: LogID=987654" },
6 "Result": null
7}