Showing results for 
Search instead for 
Did you mean: 

Response Status : 400,BATCH_NOT_COMPLETED


Response Status : 400,BATCH_NOT_COMPLETED

i'm doing payout transaction and i want to return the money when transaction status in unclaimed. but sometimes i got following status

{ Error: Response Status : 400
    at IncomingMessage.<anonymous> (/Users/user/projects-node/node_modules/paypal-rest-sdk/lib/client.js:130:23)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
     message: 'Only item belonging to a batch in Processed status can be cancelled.',
     debug_id: '6a9f27d97b17',
     information_link: '',
     httpStatusCode: 400 },
  httpStatusCode: 400 }

i'm not understanding this reponse how can i handle this?